| java.lang.Object | |
| ↳ | com.netflix.astyanax.util.TimeUUIDUtils |
Utilitary class to generate TimeUUID (type 1)
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
As byte array.
| |||||||||||
Coverts a java.util.UUID into a ByteBuffer.
| |||||||||||
Retrieves the time as long based on the byte[] representation of a UUID.
| |||||||||||
Gets a new time uuid based on
time | |||||||||||
Gets a new time uuid using ClockResolution#createClock() as a
time generator.
| |||||||||||
Gets a new and unique time uuid in milliseconds.
| |||||||||||
Returns an instance of uuid.
| |||||||||||
Converts a ByteBuffer containing a UUID into a java.util.UUID
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
As byte array. This method is often used in conjunction with @link #getTimeUUID()
| uuid | the uuid |
|---|
Coverts a java.util.UUID into a ByteBuffer.
| uuid | a java.util.UUID |
|---|
Retrieves the time as long based on the byte[] representation of a UUID.
| uuid | byte[] uuid representation |
|---|
Gets a new time uuid based on time.
NOTE: this algorithm does not resolve duplicates. To avoid duplicates use
getTimeUUID(ClockResolution clock) with an implementaion that provides unique timestamp resolution, like
MicrosecondsSyncClockResolution
It is useful to use in a TimeUUIDType sorted column family.
Gets a new time uuid using ClockResolution#createClock() as a time generator. It is useful to use in a TimeUUIDType sorted column family.
| clock | a ClockResolution |
|---|
Gets a new and unique time uuid in milliseconds. It is useful to use in a TimeUUIDType sorted column family.
Returns an instance of uuid. Useful for when you read out of cassandra you are getting a byte[] that needs to be converted into a TimeUUID.
| uuid | the uuid |
|---|
Converts a ByteBuffer containing a UUID into a java.util.UUID
| bb | a ByteBuffer containing a UUID |
|---|