Class LongCombiner.VarLenEncoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.clientImpl.lexicoder.AbstractLexicoder<Long>
-
- org.apache.accumulo.core.iterators.LongCombiner.VarLenEncoder
-
- Enclosing class:
- LongCombiner
public static class LongCombiner.VarLenEncoder extends AbstractLexicoder<Long>
An Encoder that uses a variable-length encoding for Longs. It uses WritableUtils.writeVLong and WritableUtils.readVLong for encoding and decoding.
-
-
Constructor Summary
Constructors Constructor Description VarLenEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
decode(byte[] b)
protected Long
decodeUnchecked(byte[] b, int offset, int len)
Decodes a byte array without checking if the offset and len exceed the bounds of the actual array.byte[]
encode(Long v)
-
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
-
-
-
Method Detail
-
encode
public byte[] encode(Long v)
-
decode
public Long decode(byte[] b)
-
decodeUnchecked
protected Long decodeUnchecked(byte[] b, int offset, int len)
Description copied from class:AbstractEncoder
Decodes a byte array without checking if the offset and len exceed the bounds of the actual array.- Specified by:
decodeUnchecked
in classAbstractEncoder<Long>
-
-