Class SortableBytes


  • public class SortableBytes
    extends Object
    • Constructor Detail

      • SortableBytes

        public SortableBytes​(byte[] groupKey,
                             byte[] sortKey)
    • Method Detail

      • getGroupKey

        public byte[] getGroupKey()
      • getSortKey

        public byte[] getSortKey()
      • toBytes

        public byte[] toBytes()
      • toBytesWritable

        public org.apache.hadoop.io.BytesWritable toBytesWritable()
      • fromBytesWritable

        public static SortableBytes fromBytesWritable​(org.apache.hadoop.io.BytesWritable bytes)
      • fromBytes

        public static SortableBytes fromBytes​(byte[] bytes,
                                              int offset,
                                              int length)
      • useSortableBytesAsMapOutputKey

        public static void useSortableBytesAsMapOutputKey​(org.apache.hadoop.mapreduce.Job job,
                                                          Class<? extends org.apache.hadoop.mapreduce.Partitioner> partitionerClass)