cascading.operation.aggregator
Class Max
java.lang.Object
cascading.operation.BaseOperation<ExtremaBase.Context>
cascading.operation.aggregator.ExtremaBase
cascading.operation.aggregator.Max
- All Implemented Interfaces:
- Aggregator<ExtremaBase.Context>, Operation<ExtremaBase.Context>, Serializable
public class Max
- extends ExtremaBase
Class Max is an Aggregator
that returns the maximum value encountered in the current group.
- See Also:
- Serialized Form
Fields inherited from interface cascading.operation.Operation |
ANY |
Constructor Summary |
Max()
Constructs a new instance that returns the maximum value encoutered in the field name "max". |
Max(Fields fieldDeclaration)
Constructs a new instance that returns the maximum value encoutered in the given fieldDeclaration field name. |
Max(Fields fieldDeclaration,
Object... ignoreValues)
Constructs a new instance that returns the maximum value encoutered in the given fieldDeclaration field name. |
FIELD_NAME
public static final String FIELD_NAME
- Field FIELD_NAME
- See Also:
- Constant Field Values
Max
public Max()
- Constructs a new instance that returns the maximum value encoutered in the field name "max".
Max
@ConstructorProperties(value="fieldDeclaration")
public Max(Fields fieldDeclaration)
- Constructs a new instance that returns the maximum value encoutered in the given fieldDeclaration field name.
- Parameters:
fieldDeclaration
- of type Fields
Max
@ConstructorProperties(value={"fieldDeclaration","ignoreValues"})
public Max(Fields fieldDeclaration,
Object... ignoreValues)
- Constructs a new instance that returns the maximum value encoutered 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(Number lhs,
Number rhs)
- Specified by:
compare
in class ExtremaBase
getInitialValue
protected double getInitialValue()
- Specified by:
getInitialValue
in class ExtremaBase
Copyright © 2007-2010 Concurrent, Inc. All Rights Reserved.