Package org.apache.cassandra.io.sstable
Class UUIDBasedSSTableId
java.lang.Object
org.apache.cassandra.io.sstable.UUIDBasedSSTableId
- All Implemented Interfaces:
Comparable<UUIDBasedSSTableId>,CellSourceIdentifier,SSTableId
public final class UUIDBasedSSTableId
extends Object
implements SSTableId, Comparable<UUIDBasedSSTableId>
SSTable generation identifiers that can be stored across nodes in one directory/bucket
Uses the UUID v1 identifiers
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasBytes()Creates a byte format of the identifier that can be parsed bySSTableId.Builder.fromBytes(ByteBuffer)intbooleaninthashCode()toString()Creates a String format of the identifier that can be parsed bySSTableId.Builder.fromString(String)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.db.CellSourceIdentifier
isEqualSource
-
Field Details
-
STRING_LEN
public static final int STRING_LEN- See Also:
-
BYTES_LEN
public static final int BYTES_LEN- See Also:
-
-
Constructor Details
-
UUIDBasedSSTableId
-
-
Method Details
-
asBytes
Description copied from interface:SSTableIdCreates a byte format of the identifier that can be parsed bySSTableId.Builder.fromBytes(ByteBuffer) -
toString
Description copied from interface:SSTableIdCreates a String format of the identifier that can be parsed bySSTableId.Builder.fromString(String)Must not contain any
Descriptor.FILENAME_SEPARATORcharacter as it is used in the Descriptor seeDescriptor.fromFileWithComponent(File) -
compareTo
- Specified by:
compareToin interfaceComparable<UUIDBasedSSTableId>
-
equals
-
hashCode
public int hashCode()
-