org.objectweb.medor.filter.lib

Class Max

Implemented Interfaces:
AggregateOperator, UnaryOperator

public class Max
extends BasicAggregateOperator

Max aggregate function.

Max applies to :

  1. a FieldOperand, which is part of a NestedField.
  2. a Collection of values (TupleCollection), specifying which Field is to be aggregated
  3. a Collection of values (Java Collection)

Author:
Alexandre Lefebvre

Field Summary

Fields inherited from class org.objectweb.medor.filter.lib.BasicAggregateOperator

distinct

Constructor Summary

Max(Expression e)
Max(Expression e, boolean distinct)

Method Summary

Operand
compileExpression()
org.objectweb.medor.expression.api.Operand
evaluate(ParameterOperand[] pos, Object o)
String
getOperatorString()

Methods inherited from class org.objectweb.medor.filter.lib.BasicAggregateOperator

clone, getDistinct, setDistinct

Constructor Details

Max

public Max(Expression e)


Max

public Max(Expression e,
           boolean distinct)

Method Details

compileExpression

public Operand compileExpression()
            throws ExpressionException,
                   MalformedExpressionException


evaluate

public org.objectweb.medor.expression.api.Operand evaluate(ParameterOperand[] pos,
                                                           Object o)
            throws ExpressionException


getOperatorString

public String getOperatorString()