cascading.operation.aggregator
Class Min
java.lang.Object
cascading.operation.BaseOperation<ExtremaBase.Context>
cascading.operation.aggregator.ExtremaBase
cascading.operation.aggregator.Min
- All Implemented Interfaces:
- Aggregator<ExtremaBase.Context>, Operation<ExtremaBase.Context>, java.io.Serializable
public class Min
- extends ExtremaBase
Class Min is an Aggregator
that returns the minimum value encountered in the current group.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
FIELD_NAME
Field FIELD_NAME |
Fields inherited from interface cascading.operation.Operation |
ANY |
Constructor Summary |
Min()
Constructs a new instance that returns the Min value encountered in the field name "min". |
Min(Fields fieldDeclaration)
Constructs a new instance that returns the minimum value encountered in the given fieldDeclaration field name. |
Min(Fields fieldDeclaration,
java.lang.Object... ignoreValues)
Constructs a new instance that returns the minimum value encountered in the given fieldDeclaration field name. |
Method Summary |
protected boolean |
compare(java.lang.Number lhs,
java.lang.Number rhs)
|
protected double |
getInitialValue()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
FIELD_NAME
public static final java.lang.String FIELD_NAME
- Field FIELD_NAME
- See Also:
- Constant Field Values
Min
public Min()
- Constructs a new instance that returns the Min value encountered in the field name "min".
Min
@ConstructorProperties(value="fieldDeclaration")
public Min(Fields fieldDeclaration)
- Constructs a new instance that returns the minimum value encountered in the given fieldDeclaration field name.
- Parameters:
fieldDeclaration
- of type Fields
Min
@ConstructorProperties(value={"fieldDeclaration","ignoreValues"})
public Min(Fields fieldDeclaration,
java.lang.Object... ignoreValues)
- Constructs a new instance that returns the minimum value encountered in the given fieldDeclaration field name.
Any argument matching an ignoredValue won't be compared.
- Parameters:
fieldDeclaration
- of type FieldsignoreValues
- of type Object...
compare
protected boolean compare(java.lang.Number lhs,
java.lang.Number rhs)
- Specified by:
compare
in class ExtremaBase
getInitialValue
protected double getInitialValue()
- Specified by:
getInitialValue
in class ExtremaBase
Copyright © 2007-2011 Concurrent, Inc. All Rights Reserved.