public class SSTableIdFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<SSTableId> |
COMPARATOR
Compare sstable identifiers so that UUID based identifier is always greater than sequence based identifier
|
static SSTableIdFactory |
instance |
Constructor and Description |
---|
SSTableIdFactory() |
Modifier and Type | Method and Description |
---|---|
SSTableId.Builder<SSTableId> |
defaultBuilder()
Returns default identifiers builder.
|
SSTableId |
fromBytes(java.nio.ByteBuffer bytes)
Constructs the instance of
SSTableId from the given bytes. |
SSTableId |
fromString(java.lang.String str)
Constructs the instance of
SSTableId from the given string representation. |
public static final SSTableIdFactory instance
public static final java.util.Comparator<SSTableId> COMPARATOR
public SSTableId fromString(java.lang.String str) throws java.lang.IllegalArgumentException
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.java.lang.IllegalArgumentException
- when the provided string representation does not represent id of any typepublic SSTableId fromBytes(java.nio.ByteBuffer bytes)
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.java.lang.IllegalArgumentException
- when the provided binary representation does not represent id of any typepublic SSTableId.Builder<SSTableId> defaultBuilder()
Copyright © 2009-2022 The Apache Software Foundation