Package org.apache.cassandra.io.sstable
Class SequenceBasedSSTableId
java.lang.Object
org.apache.cassandra.io.sstable.SequenceBasedSSTableId
- All Implemented Interfaces:
Comparable<SequenceBasedSSTableId>,CellSourceIdentifier,SSTableId
public class SequenceBasedSSTableId
extends Object
implements SSTableId, Comparable<SequenceBasedSSTableId>
Generation identifier based on sequence of integers.
This has been the standard implementation in C* since inception.
-
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
-
generation
public final int generation
-
-
Constructor Details
-
SequenceBasedSSTableId
public SequenceBasedSSTableId(int generation)
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<SequenceBasedSSTableId>
-
equals
-
hashCode
public int hashCode() -
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)
-