public static interface SSTableId.Builder<T extends SSTableId>
SSTableId
.Modifier and Type | Method and Description |
---|---|
T |
fromBytes(java.nio.ByteBuffer bytes)
Creates an identifier instance from its binary representation
|
T |
fromString(java.lang.String str)
Creates an identifier instance from its string representation
|
java.util.function.Supplier<T> |
generator(java.util.stream.Stream<SSTableId> existingIdentifiers)
Creates a new generator of identifiers.
|
boolean |
isUniqueIdentifier(java.nio.ByteBuffer bytes) |
boolean |
isUniqueIdentifier(java.lang.String str) |
java.util.function.Supplier<T> generator(java.util.stream.Stream<SSTableId> existingIdentifiers)
boolean isUniqueIdentifier(java.lang.String str)
boolean isUniqueIdentifier(java.nio.ByteBuffer bytes)
T fromString(java.lang.String str) throws java.lang.IllegalArgumentException
str
- string representation as returned by SSTableId.toString()
java.lang.IllegalArgumentException
- when the provided string is not a valid string representation of the identifierT fromBytes(java.nio.ByteBuffer bytes) throws java.lang.IllegalArgumentException
The method expects the identifier is encoded in all remaining bytes of the buffer. The method does not move the pointer of the buffer.
bytes
- binary representation as returned by SSTableId.asBytes()
java.lang.IllegalArgumentException
- when the provided bytes are not a valid binary representation of the identifierCopyright © 2009-2022 The Apache Software Foundation