Class SSTableIdFactory


  • public class SSTableIdFactory
    extends java.lang.Object
    • Field Detail

      • COMPARATOR

        public static final java.util.Comparator<SSTableId> COMPARATOR
        Compare sstable identifiers so that UUID based identifier is always greater than sequence based identifier
    • Constructor Detail

      • SSTableIdFactory

        public SSTableIdFactory()
    • Method Detail

      • fromString

        public SSTableId fromString​(java.lang.String str)
                             throws java.lang.IllegalArgumentException
        Constructs the instance of SSTableId from the given string representation. It finds the right builder by verifying whether the given string is the representation of the related identifier type using SSTableId.Builder.isUniqueIdentifier(String) method.
        Throws:
        java.lang.IllegalArgumentException - when the provided string representation does not represent id of any type
      • fromBytes

        public SSTableId fromBytes​(java.nio.ByteBuffer bytes)
        Constructs the instance of SSTableId from the given bytes. It finds the right builder by verifying whether the given buffer is the representation of the related identifier type using SSTableId.Builder.isUniqueIdentifier(ByteBuffer) method. The method expects the identifier is encoded in all remaining bytes of the buffer. The method does not move the pointer of the buffer.
        Throws:
        java.lang.IllegalArgumentException - when the provided binary representation does not represent id of any type