public class SortableBytes extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SortableBytes.SortableBytesGroupingComparator  | 
static class  | 
SortableBytes.SortableBytesPartitioner  | 
static class  | 
SortableBytes.SortableBytesSortingComparator  | 
| Constructor and Description | 
|---|
SortableBytes(byte[] groupKey,
             byte[] sortKey)  | 
| Modifier and Type | Method and Description | 
|---|---|
static SortableBytes | 
fromBytes(byte[] bytes,
         int offset,
         int length)  | 
static SortableBytes | 
fromBytesWritable(org.apache.hadoop.io.BytesWritable bytes)  | 
byte[] | 
getGroupKey()  | 
byte[] | 
getSortKey()  | 
byte[] | 
toBytes()  | 
org.apache.hadoop.io.BytesWritable | 
toBytesWritable()  | 
String | 
toString()  | 
static void | 
useSortableBytesAsMapOutputKey(org.apache.hadoop.mapreduce.Job job)  | 
public byte[] getGroupKey()
public byte[] getSortKey()
public byte[] toBytes()
public org.apache.hadoop.io.BytesWritable toBytesWritable()
public static SortableBytes fromBytesWritable(org.apache.hadoop.io.BytesWritable bytes)
public static SortableBytes fromBytes(byte[] bytes, int offset, int length)
public static void useSortableBytesAsMapOutputKey(org.apache.hadoop.mapreduce.Job job)
Copyright © 2011–2018. All rights reserved.