public class MinValue extends ExtremaValueBase
Aggregator
that returns the minimum value encountered in the current group.
Values are expected to be Comparable
types vs numeric representations and
the Comparable.compareTo(Object)
result is use for min comparison.ExtremaValueBase.Context
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME
Field FIELD_NAME
|
ignoreValues
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
MinValue()
Constructs a new instance that returns the Min value encountered in the field name "min".
|
MinValue(Fields fieldDeclaration)
Constructs a new instance that returns the minimum value encountered in the given fieldDeclaration field name.
|
MinValue(Fields fieldDeclaration,
Object... ignoreValues)
Constructs a new instance that returns the minimum value encountered in the given fieldDeclaration field name.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
compare(Comparable lhs,
Comparable rhs)
Allows subclasses to provide own comparison method.
|
aggregate, complete, equals, getIgnoreValues, getResult, hashCode, prepare, start
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe
public static final String FIELD_NAME
public MinValue()
@ConstructorProperties(value="fieldDeclaration") public MinValue(Fields fieldDeclaration)
fieldDeclaration
- of type Fields@ConstructorProperties(value={"fieldDeclaration","ignoreValues"}) public MinValue(Fields fieldDeclaration, Object... ignoreValues)
fieldDeclaration
- of type FieldsignoreValues
- of type Object...protected boolean compare(Comparable lhs, Comparable rhs)
ExtremaValueBase
compare
in class ExtremaValueBase
lhs
- Comparable typerhs
- Comparable typeCopyright © 2007-2015 Concurrent, Inc. All Rights Reserved.