public final class UUIDBasedSSTableId extends java.lang.Object implements SSTableId, java.lang.Comparable<UUIDBasedSSTableId>
Uses the UUID v1 identifiers
Modifier and Type | Class and Description |
---|---|
static class |
UUIDBasedSSTableId.Builder |
Modifier and Type | Field and Description |
---|---|
static int |
BYTES_LEN |
static int |
STRING_LEN |
Constructor and Description |
---|
UUIDBasedSSTableId(TimeUUID uuid) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
asBytes()
Creates a byte format of the identifier that can be parsed by
SSTableId.Builder.fromBytes(ByteBuffer) |
int |
compareTo(UUIDBasedSSTableId o) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString()
Creates a String format of the identifier that can be parsed by
SSTableId.Builder.fromString(String) |
public static final int STRING_LEN
public static final int BYTES_LEN
public UUIDBasedSSTableId(TimeUUID uuid)
public java.nio.ByteBuffer asBytes()
SSTableId
SSTableId.Builder.fromBytes(ByteBuffer)
public java.lang.String toString()
SSTableId
SSTableId.Builder.fromString(String)
Must not contain any Descriptor.FILENAME_SEPARATOR
character as it is used in the Descriptor
see Descriptor.fromFilenameWithComponent(File)
public int compareTo(UUIDBasedSSTableId o)
compareTo
in interface java.lang.Comparable<UUIDBasedSSTableId>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2009- The Apache Software Foundation