org.apache.hadoop.chukwa.extraction.demux
Class ChukwaRecordPartitioner<K,V>
java.lang.Object
org.apache.hadoop.chukwa.extraction.demux.ChukwaRecordPartitioner<K,V>
- All Implemented Interfaces:
- org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Partitioner<ChukwaRecordKey,ChukwaRecord>
public class ChukwaRecordPartitioner<K,V>
- extends Object
- implements org.apache.hadoop.mapred.Partitioner<ChukwaRecordKey,ChukwaRecord>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChukwaRecordPartitioner
public ChukwaRecordPartitioner()
configure
public void configure(org.apache.hadoop.mapred.JobConf arg0)
- Specified by:
configure
in interface org.apache.hadoop.mapred.JobConfigurable
getPartition
public int getPartition(ChukwaRecordKey key,
ChukwaRecord record,
int numReduceTasks)
- Specified by:
getPartition
in interface org.apache.hadoop.mapred.Partitioner<ChukwaRecordKey,ChukwaRecord>
Copyright © ${year} The Apache Software Foundation