Class DetermineHashedPartitionsJob.DetermineHashedPartitionsPartitioner

  • All Implemented Interfaces:
    org.apache.hadoop.conf.Configurable
    Enclosing class:
    DetermineHashedPartitionsJob

    public static class DetermineHashedPartitionsJob.DetermineHashedPartitionsPartitioner
    extends org.apache.hadoop.mapreduce.Partitioner<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.BytesWritable>
    implements org.apache.hadoop.conf.Configurable
    • Constructor Detail

      • DetermineHashedPartitionsPartitioner

        public DetermineHashedPartitionsPartitioner()
    • Method Detail

      • getPartition

        public int getPartition​(org.apache.hadoop.io.LongWritable interval,
                                org.apache.hadoop.io.BytesWritable text,
                                int numPartitions)
        Specified by:
        getPartition in class org.apache.hadoop.mapreduce.Partitioner<org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.BytesWritable>
      • getConf

        public org.apache.hadoop.conf.Configuration getConf()
        Specified by:
        getConf in interface org.apache.hadoop.conf.Configurable
      • setConf

        public void setConf​(org.apache.hadoop.conf.Configuration config)
        Specified by:
        setConf in interface org.apache.hadoop.conf.Configurable