public class CompoundSparseCellNameType extends AbstractCompoundCellNameType
| Modifier and Type | Class and Description |
|---|---|
static class |
CompoundSparseCellNameType.WithCollection |
CellNameType.DeserializerCType.Serializer| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.nio.ByteBuffer,ColumnIdentifier> |
internedIds |
static ColumnIdentifier |
rowMarkerId |
clusteringSize, clusteringType, fullSize, fullTypeisByteOrderComparable| 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, subtypeasymmetricColumnComparator, cellFromByteBuffer, cellSerializer, collectionType, columnComparator, columnReverseComparator, columnSerializer, create, diskAtomFilterSerializer, hasCollections, make, makeCellName, makeDenseCQL3RowBuilder, makeSparseCQL3RowBuilder, namesQueryFilterSerializer, onDiskAtomComparator, onDiskAtomSerializercheckRemaining, compare, deletionInfoSerializer, equals, getByteOrderAsymmetricColumnComparator, getByteOrderColumnComparator, getString, hashCode, indexComparator, indexReverseComparator, isByteOrderComparable, isCompatibleWith, rangeTombstoneSerializer, reverseComparator, serializer, sliceBytes, sliceQueryFilterSerializer, sliceSerializer, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompare, deletionInfoSerializer, getString, indexComparator, indexReverseComparator, isCompatibleWith, rangeTombstoneSerializer, reverseComparator, serializer, sliceQueryFilterSerializer, sliceSerializer, validatepublic 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)
CellNameTypepublic CellNameType addOrUpdateCollection(ColumnIdentifier columnName, CollectionType newCollection)
CellNameTypeaddOrUpdateCollection in interface CellNameTypeaddOrUpdateCollection in class AbstractCellNameTypepublic boolean isDense()
CellNameTypepublic boolean supportCollections()
CellNameTypesupportCollections in interface CellNameTypesupportCollections in class AbstractCellNameTypepublic Composite staticPrefix()
CellNameTypestaticPrefix in interface CellNameTypestaticPrefix in class AbstractCellNameTypepublic CellName create(Composite prefix, ColumnDefinition column)
CellNameTypepublic CellName rowMarker(Composite prefix)
CellNameTyperowMarker in interface CellNameTyperowMarker in class AbstractCellNameTypeprotected ColumnIdentifier idFor(java.nio.ByteBuffer bb)
protected Composite makeWith(java.nio.ByteBuffer[] components, int size, Composite.EOC eoc, boolean isStatic)
makeWith in class AbstractCompoundCellNameTypeprotected Composite copyAndMakeWith(java.nio.ByteBuffer[] components, int size, Composite.EOC eoc, boolean isStatic)
copyAndMakeWith in class AbstractCompoundCellNameTypepublic void addCQL3Column(ColumnIdentifier id)
public void removeCQL3Column(ColumnIdentifier id)
public CQL3Row.Builder CQL3RowBuilder(CFMetaData metadata, long now)
CellNameTypeCopyright © 2018 The Apache Software Foundation