Class UUIDLexicoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<UUID>
-
- org.apache.accumulo.core.client.lexicoder.UUIDLexicoder
-
public class UUIDLexicoder extends AbstractLexicoder<UUID>
A lexicoder for a UUID that maintains its lexicographic sorting order.- Since:
- 1.6.0
-
-
Constructor Summary
Constructors Constructor Description UUIDLexicoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUID
decode(byte[] b)
protected UUID
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(UUID uuid)
-
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
-
-
-
Method Detail
-
encode
public byte[] encode(UUID uuid)
-
decode
public UUID decode(byte[] b)
- Specified by:
decode
in interfaceTypedValueCombiner.Encoder<UUID>
- Overrides:
decode
in classAbstractEncoder<UUID>
-
decodeUnchecked
protected UUID decodeUnchecked(byte[] b, int offset, int len) throws ValueFormatException
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<UUID>
- Throws:
ValueFormatException
-
-