Class UserDefinedValueAggregatorDescriptor
java.lang.Object
org.apache.hadoop.mapreduce.lib.aggregate.UserDefinedValueAggregatorDescriptor
org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor
- All Implemented Interfaces:
ValueAggregatorDescriptor,ValueAggregatorDescriptor
@Public
@Stable
public class UserDefinedValueAggregatorDescriptor
extends UserDefinedValueAggregatorDescriptor
implements ValueAggregatorDescriptor
This class implements a wrapper for a user defined value aggregator
descriptor.
It serves two functions: One is to create an object of
ValueAggregatorDescriptor from the name of a user defined class that may be
dynamically loaded. The other is to delegate invocations of
generateKeyValPairs function to the created object.
-
Field Summary
Fields inherited from class org.apache.hadoop.mapreduce.lib.aggregate.UserDefinedValueAggregatorDescriptor
theAggregatorDescriptorFields 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 TypeMethodDescriptionvoidDo nothing.static ObjectcreateInstance(String className) Create an instance of the given classMethods inherited from class org.apache.hadoop.mapreduce.lib.aggregate.UserDefinedValueAggregatorDescriptor
configure, generateKeyValPairs, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.mapreduce.lib.aggregate.ValueAggregatorDescriptor
configure, generateKeyValPairs
-
Constructor Details
-
UserDefinedValueAggregatorDescriptor
- Parameters:
className- the class name of the user defined descriptor classjob- a configure object used for decriptor configuration
-
-
Method Details
-
createInstance
Create an instance of the given class- Parameters:
className- the name of the class- Returns:
- a dynamically created instance of the given class
-
configure
Do nothing.- Specified by:
configurein interfaceValueAggregatorDescriptor- Parameters:
job- a JobConf object that may contain the information that can be used to configure the object.
-