Class ValueAggregatorBaseDescriptor
java.lang.Object
org.apache.hadoop.mapreduce.lib.aggregate.ValueAggregatorBaseDescriptor
org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor
- All Implemented Interfaces:
ValueAggregatorDescriptor,ValueAggregatorDescriptor
@Public
@Stable
public class ValueAggregatorBaseDescriptor
extends ValueAggregatorBaseDescriptor
implements ValueAggregatorDescriptor
This class implements the common functionalities of
the subclasses of ValueAggregatorDescriptor class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.hadoop.mapreduce.lib.aggregate.ValueAggregatorBaseDescriptor
inputFileFields inherited from interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor
ONE, TYPE_SEPARATORFields inherited from interface org.apache.hadoop.mapreduce.lib.aggregate.ValueAggregatorDescriptor
ONE, TYPE_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidget the input file name.generateEntry(String type, String id, Text val) static ValueAggregatorMethods inherited from class org.apache.hadoop.mapreduce.lib.aggregate.ValueAggregatorBaseDescriptor
configure, generateKeyValPairs, generateValueAggregatorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.mapreduce.lib.aggregate.ValueAggregatorDescriptor
configure, generateKeyValPairs
-
Field Details
-
UNIQ_VALUE_COUNT
- See Also:
-
LONG_VALUE_SUM
- See Also:
-
DOUBLE_VALUE_SUM
- See Also:
-
VALUE_HISTOGRAM
- See Also:
-
LONG_VALUE_MAX
- See Also:
-
LONG_VALUE_MIN
- See Also:
-
STRING_VALUE_MAX
- See Also:
-
STRING_VALUE_MIN
- See Also:
-
-
Constructor Details
-
ValueAggregatorBaseDescriptor
public ValueAggregatorBaseDescriptor()
-
-
Method Details
-
generateEntry
- Parameters:
type- the aggregation typeid- the aggregation idval- the val associated with the id to be aggregated- Returns:
- an Entry whose key is the aggregation id prefixed with the aggregation type.
-
generateValueAggregator
- Parameters:
type- the aggregation type- Returns:
- a value aggregator of the given type.
-
configure
get the input file name.- Specified by:
configurein interfaceValueAggregatorDescriptor- Parameters:
job- a job configuration object
-