Package org.apache.druid.indexer
Class SortableBytes
- java.lang.Object
-
- org.apache.druid.indexer.SortableBytes
-
public class SortableBytes extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSortableBytes.SortableBytesGroupingComparatorstatic classSortableBytes.SortableBytesSortingComparator
-
Constructor Summary
Constructors Constructor Description SortableBytes(byte[] groupKey, byte[] sortKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SortableBytesfromBytes(byte[] bytes, int offset, int length)static SortableBytesfromBytesWritable(org.apache.hadoop.io.BytesWritable bytes)byte[]getGroupKey()byte[]getSortKey()byte[]toBytes()org.apache.hadoop.io.BytesWritabletoBytesWritable()StringtoString()static voiduseSortableBytesAsMapOutputKey(org.apache.hadoop.mapreduce.Job job, Class<? extends org.apache.hadoop.mapreduce.Partitioner> partitionerClass)
-
-
-
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)
-
-