Package org.apache.cassandra.io.sstable
Class UUIDBasedSSTableId
- java.lang.Object
-
- org.apache.cassandra.io.sstable.UUIDBasedSSTableId
-
- All Implemented Interfaces:
java.lang.Comparable<UUIDBasedSSTableId>
,SSTableId
public final class UUIDBasedSSTableId extends java.lang.Object implements SSTableId, java.lang.Comparable<UUIDBasedSSTableId>
SSTable generation identifiers that can be stored across nodes in one directory/bucketUses the UUID v1 identifiers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UUIDBasedSSTableId.Builder
-
Field Summary
Fields Modifier and Type Field Description static int
BYTES_LEN
static int
STRING_LEN
-
Constructor Summary
Constructors Constructor Description UUIDBasedSSTableId(TimeUUID uuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
asBytes()
Creates a byte format of the identifier that can be parsed bySSTableId.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 bySSTableId.Builder.fromString(String)
-
-
-
Field Detail
-
STRING_LEN
public static final int STRING_LEN
- See Also:
- Constant Field Values
-
BYTES_LEN
public static final int BYTES_LEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UUIDBasedSSTableId
public UUIDBasedSSTableId(TimeUUID uuid)
-
-
Method Detail
-
asBytes
public java.nio.ByteBuffer asBytes()
Description copied from interface:SSTableId
Creates a byte format of the identifier that can be parsed bySSTableId.Builder.fromBytes(ByteBuffer)
-
toString
public java.lang.String toString()
Description copied from interface:SSTableId
Creates a String format of the identifier that can be parsed bySSTableId.Builder.fromString(String)
Must not contain any
Descriptor.FILENAME_SEPARATOR
character as it is used in the Descriptor seeDescriptor.fromFileWithComponent(File)
-
compareTo
public int compareTo(UUIDBasedSSTableId o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<UUIDBasedSSTableId>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-