public static class CompoundSparseCellNameType.WithCollection extends CompoundSparseCellNameType
CompoundSparseCellNameType.WithCollectionCellNameType.DeserializerCType.SerializerinternedIds, rowMarkerIdclusteringSize, clusteringType, fullSize, fullTypeisByteOrderComparable| Constructor and Description |
|---|
WithCollection(java.util.List<AbstractType<?>> types,
ColumnToCollectionType collectionType) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ColumnToCollectionType |
collectionType()
The type of the collections (or null if the type does not have any non-frozen collections).
|
int |
compare(Composite c1,
Composite c2) |
protected Composite |
copyAndMakeWith(java.nio.ByteBuffer[] components,
int size,
Composite.EOC eoc,
boolean isStatic) |
CellName |
create(Composite prefix,
ColumnDefinition column,
java.nio.ByteBuffer collectionElement)
Creates a new collection CellName given a clustering prefix, a CQL3 column 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,
boolean isStatic) |
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, staticPrefix, supportCollectionsasAbstractType, builder, clusteringPrefixSize, fromByteBuffer, isCompound, makeCellName, newDeserializer, prefixBuilder, size, subtypeasymmetricColumnComparator, cellFromByteBuffer, cellSerializer, columnComparator, columnReverseComparator, columnSerializer, diskAtomFilterSerializer, make, makeCellName, makeDenseCQL3RowBuilder, makeSparseCQL3RowBuilder, namesQueryFilterSerializer, onDiskAtomComparator, onDiskAtomSerializercheckRemaining, deletionInfoSerializer, equals, getByteOrderAsymmetricColumnComparator, getByteOrderColumnComparator, getString, hashCode, indexComparator, indexReverseComparator, isByteOrderComparable, isCompatibleWith, rangeTombstoneSerializer, reverseComparator, serializer, sliceBytes, sliceQueryFilterSerializer, sliceSerializer, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitdeletionInfoSerializer, getString, indexComparator, indexReverseComparator, isCompatibleWith, rangeTombstoneSerializer, reverseComparator, serializer, sliceQueryFilterSerializer, sliceSerializer, validatepublic WithCollection(java.util.List<AbstractType<?>> types, ColumnToCollectionType collectionType)
public CellNameType setSubtype(int position, AbstractType<?> newType)
CellNameTypesetSubtype in interface CellNameTypesetSubtype in interface CTypesetSubtype in class CompoundSparseCellNameTypepublic CellNameType addOrUpdateCollection(ColumnIdentifier columnName, CollectionType newCollection)
CellNameTypeaddOrUpdateCollection in interface CellNameTypeaddOrUpdateCollection in class CompoundSparseCellNameTypepublic CellName create(Composite prefix, ColumnDefinition column, java.nio.ByteBuffer collectionElement)
CellNameTypecreate in interface CellNameTypecreate in class AbstractCellNameTypepublic int compare(Composite c1, Composite c2)
compare in interface java.util.Comparator<Composite>compare in interface CTypecompare in class AbstractCTypepublic boolean hasCollections()
CellNameTypehasCollections in interface CellNameTypehasCollections in class AbstractCellNameTypepublic ColumnToCollectionType collectionType()
CellNameTypecollectionType in interface CellNameTypecollectionType in class AbstractCellNameTypeprotected Composite makeWith(java.nio.ByteBuffer[] components, int size, Composite.EOC eoc, boolean isStatic)
makeWith in class CompoundSparseCellNameTypeprotected Composite copyAndMakeWith(java.nio.ByteBuffer[] components, int size, Composite.EOC eoc, boolean isStatic)
copyAndMakeWith in class CompoundSparseCellNameTypeCopyright © 2018 The Apache Software Foundation