org.scale7.cassandra.pelops
Class UuidHelper

java.lang.Object
  extended by org.scale7.cassandra.pelops.UuidHelper

public class UuidHelper
extends Object


Constructor Summary
UuidHelper()
           
 
Method Summary
static UUID newTimeUuid()
          Generate a new time UUID object
static byte[] newTimeUuidBytes()
          Deprecated. Use the methods available on Bytes
static UUID timeUuidFromBytes(byte[] uuid)
          Deprecated. Use the methods available on Bytes
static byte[] timeUuidStringToBytes(String uuidStr)
          Deprecated. Use the methods available on Bytes
static byte[] timeUuidToBytes(UUID uuid)
          Deprecated. Use the methods available on Bytes
static byte[] uuidToBytes(long msb, long lsb)
          Deprecated. Use the methods available on Bytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UuidHelper

public UuidHelper()
Method Detail

newTimeUuid

public static UUID newTimeUuid()
Generate a new time UUID object

Returns:
A new time UUID object

newTimeUuidBytes

@Deprecated
public static byte[] newTimeUuidBytes()
Deprecated. Use the methods available on Bytes

Generate a new time UUID in serialized form

Returns:
The serialized bytes of a new time UUID object

timeUuidFromBytes

@Deprecated
public static UUID timeUuidFromBytes(byte[] uuid)
Deprecated. Use the methods available on Bytes

Deserializes a TimeUUID from a byte array

Parameters:
uuid - The bytes of the time UUID
Returns:
The deserialized time UUID object

timeUuidToBytes

@Deprecated
public static byte[] timeUuidToBytes(UUID uuid)
Deprecated. Use the methods available on Bytes

Serialize a time UUID into a byte array.

Parameters:
uuid - The time UUID to serialize
Returns:
The serialized bytes of the time UUID

uuidToBytes

@Deprecated
public static byte[] uuidToBytes(long msb,
                                            long lsb)
Deprecated. Use the methods available on Bytes


timeUuidStringToBytes

@Deprecated
public static byte[] timeUuidStringToBytes(String uuidStr)
Deprecated. Use the methods available on Bytes

Convert a string representation of a time UUID into bytes

Parameters:
uuidStr - The string representation of the time UUID
Returns:
The serialized bytes of the represented time UUID object


Copyright © 2011. All Rights Reserved.