public class ColumnIdentifier extends Selectable implements IMeasurableMemory, java.lang.Comparable<ColumnIdentifier>
| Modifier and Type | Class and Description |
|---|---|
static class |
ColumnIdentifier.ColumnIdentifierValue |
static class |
ColumnIdentifier.Literal |
static interface |
ColumnIdentifier.Raw
Because Thrift-created tables may have a non-text comparator, we cannot determine the proper 'key' until
we know the comparator.
|
Selectable.WithFieldSelection, Selectable.WithFunction, Selectable.WritetimeOrTTL| Modifier and Type | Field and Description |
|---|---|
java.nio.ByteBuffer |
bytes |
long |
prefixComparison
since these objects are compared frequently, we stash an efficiently compared prefix of the bytes, in the expectation
that the majority of comparisons can be answered by this value only
|
| Constructor and Description |
|---|
ColumnIdentifier(java.nio.ByteBuffer bytes,
AbstractType<?> type) |
ColumnIdentifier(java.lang.String rawText,
boolean keepCase) |
| Modifier and Type | Method and Description |
|---|---|
ColumnIdentifier |
clone(AbstractAllocator allocator) |
int |
compareTo(ColumnIdentifier that) |
boolean |
equals(java.lang.Object o) |
static ColumnIdentifier |
getInterned(java.nio.ByteBuffer bytes,
AbstractType<?> type) |
static ColumnIdentifier |
getInterned(java.nio.ByteBuffer bytes,
java.lang.String text) |
static ColumnIdentifier |
getInterned(java.lang.String rawText,
boolean keepCase) |
int |
hashCode() |
boolean |
isInterned() |
Selector.Factory |
newSelectorFactory(CFMetaData cfm,
java.util.List<ColumnDefinition> defs) |
java.lang.String |
toCQLString()
Returns a string representation of the identifier that is safe to use directly in CQL queries.
|
java.lang.String |
toString() |
long |
unsharedHeapSize() |
long |
unsharedHeapSizeExcludingData() |
addAndGetIndexpublic final java.nio.ByteBuffer bytes
public final long prefixComparison
public ColumnIdentifier(java.lang.String rawText,
boolean keepCase)
public ColumnIdentifier(java.nio.ByteBuffer bytes,
AbstractType<?> type)
public static ColumnIdentifier getInterned(java.nio.ByteBuffer bytes, AbstractType<?> type)
public static ColumnIdentifier getInterned(java.lang.String rawText, boolean keepCase)
public static ColumnIdentifier getInterned(java.nio.ByteBuffer bytes, java.lang.String text)
public boolean isInterned()
public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toCQLString()
public long unsharedHeapSize()
unsharedHeapSize in interface IMeasurableMemorypublic long unsharedHeapSizeExcludingData()
public ColumnIdentifier clone(AbstractAllocator allocator)
public Selector.Factory newSelectorFactory(CFMetaData cfm, java.util.List<ColumnDefinition> defs) throws InvalidRequestException
newSelectorFactory in class SelectableInvalidRequestExceptionpublic int compareTo(ColumnIdentifier that)
compareTo in interface java.lang.Comparable<ColumnIdentifier>Copyright © 2016 The Apache Software Foundation