Class IndexGeneratorJob.IndexGeneratorPartitioner

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

    public static class IndexGeneratorJob.IndexGeneratorPartitioner
    extends org.apache.hadoop.mapreduce.Partitioner<org.apache.hadoop.io.BytesWritable,​org.apache.hadoop.io.Writable>
    implements org.apache.hadoop.conf.Configurable
    • Constructor Detail

      • IndexGeneratorPartitioner

        public IndexGeneratorPartitioner()
    • Method Detail

      • getPartition

        public int getPartition​(org.apache.hadoop.io.BytesWritable bytesWritable,
                                org.apache.hadoop.io.Writable value,
                                int numPartitions)
        Specified by:
        getPartition in class org.apache.hadoop.mapreduce.Partitioner<org.apache.hadoop.io.BytesWritable,​org.apache.hadoop.io.Writable>
      • 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