Class ListLexicoder<LT>
java.lang.Object
org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<List<LT>>
org.apache.accumulo.core.client.lexicoder.ListLexicoder<LT>
- All Implemented Interfaces:
Encoder<List<LT>>,Lexicoder<List<LT>>,org.apache.accumulo.core.iterators.TypedValueCombiner.Encoder<List<LT>>
public class ListLexicoder<LT>
extends org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<List<LT>>
A lexicoder to encode/decode a Java List to/from a byte array where the concatenation of each
encoded element sorts lexicographically.
- Since:
- 1.6.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
Constructor Details
-
ListLexicoder
-
-
Method Details
-
encode
- Returns:
- a byte array containing the concatenation of each element in the list encoded.
-
decode
- Specified by:
decodein interfaceorg.apache.accumulo.core.iterators.TypedValueCombiner.Encoder<LT>- Overrides:
decodein classAbstractEncoder<List<LT>>
-
decodeUnchecked
Description copied from class:AbstractEncoderDecodes a byte array without checking if the offset and len exceed the bounds of the actual array.- Specified by:
decodeUncheckedin classAbstractEncoder<List<LT>>
-