@InterfaceAudience.Public @InterfaceStability.Stable public class ValueAggregatorBaseDescriptor extends ValueAggregatorBaseDescriptor implements ValueAggregatorDescriptor
Modifier and Type | Field and Description |
---|---|
static String |
DOUBLE_VALUE_SUM |
static String |
LONG_VALUE_MAX |
static String |
LONG_VALUE_MIN |
static String |
LONG_VALUE_SUM |
static String |
STRING_VALUE_MAX |
static String |
STRING_VALUE_MIN |
static String |
UNIQ_VALUE_COUNT |
static String |
VALUE_HISTOGRAM |
inputFile
ONE, TYPE_SEPARATOR
Constructor and Description |
---|
ValueAggregatorBaseDescriptor() |
Modifier and Type | Method and Description |
---|---|
void |
configure(JobConf job)
get the input file name.
|
static Map.Entry<Text,Text> |
generateEntry(String type,
String id,
Text val) |
static ValueAggregator |
generateValueAggregator(String type) |
configure, generateKeyValPairs, generateValueAggregator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, generateKeyValPairs
public static final String UNIQ_VALUE_COUNT
public static final String LONG_VALUE_SUM
public static final String DOUBLE_VALUE_SUM
public static final String VALUE_HISTOGRAM
public static final String LONG_VALUE_MAX
public static final String LONG_VALUE_MIN
public static final String STRING_VALUE_MAX
public static final String STRING_VALUE_MIN
public static Map.Entry<Text,Text> generateEntry(String type, String id, Text val)
type
- the aggregation typeid
- the aggregation idval
- the val associated with the id to be aggregatedpublic static ValueAggregator generateValueAggregator(String type)
type
- the aggregation typepublic void configure(JobConf job)
job
- a job configuration objectCopyright © 2017 Apache Software Foundation. All rights reserved.