public static class CompoundSparseCellNameType.WithCollection extends CompoundSparseCellNameType
CompoundSparseCellNameType.WithCollection
CellNameType.Deserializer
CType.Serializer
internedIds
clusteringSize, clusteringType, fullSize, fullType
Constructor and Description |
---|
CompoundSparseCellNameType.WithCollection(java.util.List<AbstractType<?>> types,
ColumnToCollectionType collectionType) |
Modifier and Type | Method and Description |
---|---|
CellNameType |
addCollection(ColumnIdentifier columnName,
CollectionType newCollection)
Return the new type obtained by adding the new collection type for the provided column name
to this type.
|
ColumnToCollectionType |
collectionType()
The type of the collections (or null if the type has not collections).
|
protected Composite |
copyAndMakeWith(java.nio.ByteBuffer[] components,
int size,
Composite.EOC eoc) |
CellName |
create(Composite prefix,
ColumnIdentifier columnName,
java.nio.ByteBuffer collectionElement)
Creates a new collection CellName given a clustering prefix, a CQL3 columnName and the collection element.
|
boolean |
hasCollections()
Whether or not there is some collections defined in this type.
|
protected Composite |
makeWith(java.nio.ByteBuffer[] components,
int size,
Composite.EOC eoc) |
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.
|
addCQL3Column, CQL3RowBuilder, create, idFor, isDense, makeCType, removeCQL3Column, rowMarker, supportCollections
asAbstractType, builder, clusteringPrefixSize, fromByteBuffer, isCompound, makeCellName, newDeserializer, prefixBuilder, size, subtype
cellFromByteBuffer, cellSerializer, columnComparator, columnReverseComparator, columnSerializer, diskAtomFilterSerializer, make, makeCellName, makeDenseCQL3RowBuilder, makeSparseCQL3RowBuilder, namesQueryFilterSerializer, onDiskAtomComparator, onDiskAtomSerializer
checkRemaining, compare, deletionInfoSerializer, equals, getString, hashCode, indexComparator, indexReverseComparator, indexSerializer, isCompatibleWith, rangeTombstoneSerializer, reverseComparator, rowIndexEntrySerializer, serializer, sliceBytes, sliceQueryFilterSerializer, sliceSerializer, toString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
deletionInfoSerializer, getString, indexComparator, indexReverseComparator, indexSerializer, isCompatibleWith, rangeTombstoneSerializer, reverseComparator, rowIndexEntrySerializer, serializer, sliceQueryFilterSerializer, sliceSerializer, validate
public CompoundSparseCellNameType.WithCollection(java.util.List<AbstractType<?>> types, ColumnToCollectionType collectionType)
public CellNameType setSubtype(int position, AbstractType<?> newType)
CellNameType
setSubtype
in interface CellNameType
setSubtype
in interface CType
setSubtype
in class CompoundSparseCellNameType
public CellNameType addCollection(ColumnIdentifier columnName, CollectionType newCollection)
CellNameType
addCollection
in interface CellNameType
addCollection
in class CompoundSparseCellNameType
public CellName create(Composite prefix, ColumnIdentifier columnName, java.nio.ByteBuffer collectionElement)
CellNameType
create
in interface CellNameType
create
in class AbstractCellNameType
public boolean hasCollections()
CellNameType
hasCollections
in interface CellNameType
hasCollections
in class AbstractCellNameType
public ColumnToCollectionType collectionType()
CellNameType
collectionType
in interface CellNameType
collectionType
in class AbstractCellNameType
protected Composite makeWith(java.nio.ByteBuffer[] components, int size, Composite.EOC eoc)
makeWith
in class CompoundSparseCellNameType
protected Composite copyAndMakeWith(java.nio.ByteBuffer[] components, int size, Composite.EOC eoc)
copyAndMakeWith
in class CompoundSparseCellNameType
Copyright © 2014 The Apache Software Foundation