org.apache.cassandra.utils
Class UUIDGen

java.lang.Object
  extended by org.apache.cassandra.utils.UUIDGen

public class UUIDGen
extends java.lang.Object

Generates type 1 (time-based) UUIDs


Constructor Summary
UUIDGen()
           
 
Method Summary
static byte[] decompose(java.util.UUID uuid)
          decomposes a uuid into raw bytes.
static java.util.UUID getUUID(java.nio.ByteBuffer raw)
          creates a type 1 uuid from raw bytes.
static java.util.UUID makeType1UUIDFromHost(java.net.InetAddress addr)
          creates a type1 uuid but substitutes hash of the IP where the mac would go.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUIDGen

public UUIDGen()
Method Detail

makeType1UUIDFromHost

public static java.util.UUID makeType1UUIDFromHost(java.net.InetAddress addr)
creates a type1 uuid but substitutes hash of the IP where the mac would go.


getUUID

public static java.util.UUID getUUID(java.nio.ByteBuffer raw)
creates a type 1 uuid from raw bytes.


decompose

public static byte[] decompose(java.util.UUID uuid)
decomposes a uuid into raw bytes.



Copyright © 2011 The Apache Software Foundation