Package org.apache.cassandra.io.sstable
Class UUIDBasedSSTableId.Builder
java.lang.Object
org.apache.cassandra.io.sstable.UUIDBasedSSTableId.Builder
- All Implemented Interfaces:
SSTableId.Builder<UUIDBasedSSTableId>
- Enclosing class:
- UUIDBasedSSTableId
public static class UUIDBasedSSTableId.Builder
extends Object
implements SSTableId.Builder<UUIDBasedSSTableId>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromBytes(ByteBuffer bytes) Creates an identifier instance from its binary representationfromString(String s) Creates an identifier instance from its string representationCreates a new UUID based identifiers generator.booleanisUniqueIdentifier(String str) booleanisUniqueIdentifier(ByteBuffer bytes)
-
Field Details
-
instance
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
generator
Creates a new UUID based identifiers generator.- Specified by:
generatorin interfaceSSTableId.Builder<UUIDBasedSSTableId>- Parameters:
existingIdentifiers- not used by UUID based generator
-
isUniqueIdentifier
- Specified by:
isUniqueIdentifierin interfaceSSTableId.Builder<UUIDBasedSSTableId>
-
isUniqueIdentifier
- Specified by:
isUniqueIdentifierin interfaceSSTableId.Builder<UUIDBasedSSTableId>
-
fromString
Description copied from interface:SSTableId.BuilderCreates an identifier instance from its string representation- Specified by:
fromStringin interfaceSSTableId.Builder<UUIDBasedSSTableId>- Parameters:
s- string representation as returned bySSTableId.toString()- Throws:
IllegalArgumentException- when the provided string is not a valid string representation of the identifier
-
fromBytes
Description copied from interface:SSTableId.BuilderCreates an identifier instance from its binary representationThe method expects the identifier is encoded in all remaining bytes of the buffer. The method does not move the pointer of the buffer.
- Specified by:
fromBytesin interfaceSSTableId.Builder<UUIDBasedSSTableId>- Parameters:
bytes- binary representation as returned bySSTableId.asBytes()- Throws:
IllegalArgumentException- when the provided bytes are not a valid binary representation of the identifier
-