Interface SSTableId

  • All Known Implementing Classes:
    SequenceBasedSSTableId, UUIDBasedSSTableId

    public interface SSTableId
    Represents a unique identifier in the sstable descriptor filename. This ensures each sstable file uniqueness for the certain table on a single node. However, new implementations should ensure the uniqueness across the entire cluster. The legacy implementation which does not satisfy cluster-wide uniqueness will be deprecated and eventually removed.

    A new implementation must adhere to the following invariants: - Must be locally sortable - that is, the comparison must reflect the comparison of generation times of identifiers generated on the same node - String representation must *not* include the Descriptor.FILENAME_SEPARATOR character, see Descriptor.fromFileWithComponent(File) - must be case-insensitive because the sstables can be stored on case-insensitive file system