public class CompoundSparseCellNameType extends AbstractCompoundCellNameType
Modifier and Type | Class and Description |
---|---|
static class |
CompoundSparseCellNameType.WithCollection |
CellNameType.Deserializer
CType.Serializer
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.nio.ByteBuffer,ColumnIdentifier> |
internedIds |
static ColumnIdentifier |
rowMarkerId |
clusteringSize, clusteringType, fullSize, fullType
isByteOrderComparable
Constructor and Description |
---|
CompoundSparseCellNameType(java.util.List<AbstractType<?>> types) |
CompoundSparseCellNameType(java.util.List<AbstractType<?>> types,
AbstractType<?> columnNameType) |
Modifier and Type | Method and Description |
---|---|
void |
addCQL3Column(ColumnIdentifier id) |
CellNameType |
addOrUpdateCollection(ColumnIdentifier columnName,
CollectionType newCollection)
Return the new type obtained by adding/updating to the new collection type for the provided column name
to this type.
|
protected Composite |
copyAndMakeWith(java.nio.ByteBuffer[] components,
int size,
Composite.EOC eoc,
boolean isStatic) |
CQL3Row.Builder |
CQL3RowBuilder(CFMetaData metadata,
long now)
Creates a new CQL3Row builder for this type.
|
CellName |
create(Composite prefix,
ColumnDefinition column)
Creates a new CellName given a clustering prefix and a CQL3 column.
|
protected ColumnIdentifier |
idFor(java.nio.ByteBuffer bb) |
boolean |
isDense()
Whether or not the cell names for this type are dense.
|
protected static CompoundCType |
makeCType(CompoundCType clusteringType,
AbstractType<?> columnNameType,
ColumnToCollectionType collectionType) |
protected Composite |
makeWith(java.nio.ByteBuffer[] components,
int size,
Composite.EOC eoc,
boolean isStatic) |
void |
removeCQL3Column(ColumnIdentifier id) |
CellName |
rowMarker(Composite prefix)
Creates a row marker for the CQL3 having the provided clustering prefix.
|
CellNameType |
setSubtype(int position,
AbstractType<?> newType)
Returns a new CellNameType that is equivalent to this one but with one
of the subtype replaced by the provided new type.
|
Composite |
staticPrefix()
The prefix to use for static columns.
|
boolean |
supportCollections()
Whether or not this type layout support collections.
|
asAbstractType, builder, clusteringPrefixSize, fromByteBuffer, isCompound, makeCellName, newDeserializer, prefixBuilder, size, subtype
asymmetricColumnComparator, cellFromByteBuffer, cellSerializer, collectionType, columnComparator, columnReverseComparator, columnSerializer, create, diskAtomFilterSerializer, hasCollections, make, makeCellName, makeDenseCQL3RowBuilder, makeSparseCQL3RowBuilder, namesQueryFilterSerializer, onDiskAtomComparator, onDiskAtomSerializer
checkRemaining, compare, deletionInfoSerializer, equals, getByteOrderAsymmetricColumnComparator, getByteOrderColumnComparator, getString, hashCode, indexComparator, indexReverseComparator, isByteOrderComparable, isCompatibleWith, rangeTombstoneSerializer, reverseComparator, serializer, sliceBytes, sliceQueryFilterSerializer, sliceSerializer, toString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compare, deletionInfoSerializer, getString, indexComparator, indexReverseComparator, isCompatibleWith, rangeTombstoneSerializer, reverseComparator, serializer, sliceQueryFilterSerializer, sliceSerializer, validate
public static final ColumnIdentifier rowMarkerId
protected final java.util.Map<java.nio.ByteBuffer,ColumnIdentifier> internedIds
public CompoundSparseCellNameType(java.util.List<AbstractType<?>> types)
public CompoundSparseCellNameType(java.util.List<AbstractType<?>> types, AbstractType<?> columnNameType)
protected static CompoundCType makeCType(CompoundCType clusteringType, AbstractType<?> columnNameType, ColumnToCollectionType collectionType)
public CellNameType setSubtype(int position, AbstractType<?> newType)
CellNameType
public CellNameType addOrUpdateCollection(ColumnIdentifier columnName, CollectionType newCollection)
CellNameType
addOrUpdateCollection
in interface CellNameType
addOrUpdateCollection
in class AbstractCellNameType
public boolean isDense()
CellNameType
public boolean supportCollections()
CellNameType
supportCollections
in interface CellNameType
supportCollections
in class AbstractCellNameType
public Composite staticPrefix()
CellNameType
staticPrefix
in interface CellNameType
staticPrefix
in class AbstractCellNameType
public CellName create(Composite prefix, ColumnDefinition column)
CellNameType
public CellName rowMarker(Composite prefix)
CellNameType
rowMarker
in interface CellNameType
rowMarker
in class AbstractCellNameType
protected ColumnIdentifier idFor(java.nio.ByteBuffer bb)
protected Composite makeWith(java.nio.ByteBuffer[] components, int size, Composite.EOC eoc, boolean isStatic)
makeWith
in class AbstractCompoundCellNameType
protected Composite copyAndMakeWith(java.nio.ByteBuffer[] components, int size, Composite.EOC eoc, boolean isStatic)
copyAndMakeWith
in class AbstractCompoundCellNameType
public void addCQL3Column(ColumnIdentifier id)
public void removeCQL3Column(ColumnIdentifier id)
public CQL3Row.Builder CQL3RowBuilder(CFMetaData metadata, long now)
CellNameType
Copyright © 2018 The Apache Software Foundation