org.objectweb.medor.filter.lib

Class Min

Implemented Interfaces:
AggregateOperator, UnaryOperator

public class Min
extends BasicAggregateOperator

Min aggregate function.

Min 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

Min(Expression e)
Min(Expression e, boolean distinct)

Method Summary

Operand
compileExpression()
Operand
evaluate(ParameterOperand[] pos, Object o)
String
getOperatorString()

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

clone, getDistinct, setDistinct

Constructor Details

Min

public Min(Expression e)


Min

public Min(Expression e,
           boolean distinct)

Method Details

compileExpression

public Operand compileExpression()
            throws ExpressionException,
                   MalformedExpressionException


evaluate

public Operand evaluate(ParameterOperand[] pos,
                        Object o)
            throws ExpressionException


getOperatorString

public String getOperatorString()