org.apache.accumulo.core.client.lexicoder
Class UUIDLexicoder

java.lang.Object
  extended by org.apache.accumulo.core.client.lexicoder.UUIDLexicoder
All Implemented Interfaces:
Encoder<UUID>, Lexicoder<UUID>, TypedValueCombiner.Encoder<UUID>

public class UUIDLexicoder
extends Object
implements Lexicoder<UUID>

A lexicoder for a UUID that maintains its lexicographic sorting order.

Since:
1.6.0

Constructor Summary
UUIDLexicoder()
           
 
Method Summary
 UUID decode(byte[] b)
           
 byte[] encode(UUID uuid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUIDLexicoder

public UUIDLexicoder()
Method Detail

encode

public byte[] encode(UUID uuid)
Specified by:
encode in interface TypedValueCombiner.Encoder<UUID>
See Also:
RFC 4122: A Universally Unique IDentifier (UUID) URN Namespace, "Rules for Lexical Equivalence" in Section 3.

decode

public UUID decode(byte[] b)
            throws ValueFormatException
Specified by:
decode in interface TypedValueCombiner.Encoder<UUID>
Throws:
ValueFormatException


Copyright © 2015 Apache Accumulo Project. All rights reserved.