Modifier and Type | Interface and Description |
---|---|
interface |
Encoder<T>
An encoder represents a typed object that can be encoded/decoded to/from a byte array.
|
interface |
Lexicoder<T>
A lexicoder provides methods to convert to/from byte arrays.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractEncoder<T>
AbstractEncoder is an
Encoder that implements all of Encoder's methods validating the input, but has those
methods defer logic to to a new method, AbstractEncoder.decodeUnchecked(byte[], int, int) . |
class |
BigIntegerLexicoder
A lexicoder to encode/decode a BigInteger to/from bytes that maintain its native Java sort order.
|
class |
BytesLexicoder
For each of the methods, this lexicoder just passes the input through untouched.
|
class |
DateLexicoder
A lexicoder for date objects.
|
class |
DoubleLexicoder
A lexicoder for preserving the native Java sort order of Double values.
|
class |
FloatLexicoder
A lexicoder for preserving the native Java sort order of Float values.
|
class |
IntegerLexicoder
A lexicoder for signed integers.
|
class |
ListLexicoder<LT>
A lexicoder to encode/decode a Java List to/from a byte array where the concatenation of each encoded element sorts lexicographically.
|
class |
LongLexicoder
Signed long lexicoder.
|
class |
PairLexicoder<A extends Comparable<A>,B extends Comparable<B>>
This class is a lexicoder that sorts a ComparablePair.
|
class |
ReverseLexicoder<T>
A lexicoder that flips the sort order from another lexicoder.
|
class |
StringLexicoder
This lexicoder encodes/decodes a given String to/from bytes without further processing.
|
class |
TextLexicoder
A lexicoder that preserves a Text's native sort order.
|
class |
UIntegerLexicoder
A lexicoder for an unsigned integer.
|
class |
ULongLexicoder
Unsigned long lexicoder.
|
class |
UUIDLexicoder
A lexicoder for a UUID that maintains its lexicographic sorting order.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLexicoder<T> |
Modifier and Type | Class and Description |
---|---|
static class |
LongCombiner.FixedLenEncoder
An Encoder that uses an 8-byte encoding for Longs.
|
static class |
LongCombiner.StringEncoder
An Encoder that uses a String representation of Longs.
|
static class |
LongCombiner.VarLenEncoder
An Encoder that uses a variable-length encoding for Longs.
|
Modifier and Type | Field and Description |
---|---|
static TypedValueCombiner.Encoder<Long> |
LongCombiner.FIXED_LEN_ENCODER |
static TypedValueCombiner.Encoder<Long> |
LongCombiner.STRING_ENCODER |
static TypedValueCombiner.Encoder<Long> |
LongCombiner.VAR_LEN_ENCODER |
Modifier and Type | Method and Description |
---|---|
protected void |
TypedValueCombiner.setEncoder(TypedValueCombiner.Encoder<V> encoder)
Sets the
Encoder<V> used to translate Values to V and back. |
static <V> void |
TypedValueCombiner.testEncoder(TypedValueCombiner.Encoder<V> encoder,
V v)
Tests whether v remains the same when encoded and decoded with the given encoder.
|
Modifier and Type | Method and Description |
---|---|
static void |
LongCombiner.setEncodingType(IteratorSetting is,
Class<? extends TypedValueCombiner.Encoder<Long>> encoderClass)
A convenience method for setting the long encoding type.
|
Modifier and Type | Class and Description |
---|---|
static class |
BigDecimalCombiner.BigDecimalEncoder
Provides the ability to encode scientific notation.
|
static class |
SummingArrayCombiner.DOSArrayEncoder<V> |
static class |
SummingArrayCombiner.FixedLongArrayEncoder |
static class |
SummingArrayCombiner.StringArrayEncoder |
static class |
SummingArrayCombiner.VarLongArrayEncoder |
Modifier and Type | Field and Description |
---|---|
static TypedValueCombiner.Encoder<List<Long>> |
SummingArrayCombiner.FIXED_LONG_ARRAY_ENCODER |
static TypedValueCombiner.Encoder<List<Long>> |
SummingArrayCombiner.STRING_ARRAY_ENCODER |
static TypedValueCombiner.Encoder<List<Long>> |
SummingArrayCombiner.VAR_LONG_ARRAY_ENCODER |
Modifier and Type | Method and Description |
---|---|
static void |
SummingArrayCombiner.setEncodingType(IteratorSetting is,
Class<? extends TypedValueCombiner.Encoder<List<Long>>> encoderClass)
A convenience method for setting the encoding type.
|
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.