public static class CompoundSparseCellNameType.WithCollection extends CompoundSparseCellNameType
CompoundSparseCellNameType.WithCollection
CellNameType.Deserializer
CType.Serializer
internedIds, rowMarkerId
clusteringSize, clusteringType, fullSize, fullType
isByteOrderComparable
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, supportCollections
asAbstractType, builder, clusteringPrefixSize, fromByteBuffer, isCompound, makeCellName, newDeserializer, prefixBuilder, size, subtype
asymmetricColumnComparator, cellFromByteBuffer, cellSerializer, columnComparator, columnReverseComparator, columnSerializer, diskAtomFilterSerializer, make, makeCellName, makeDenseCQL3RowBuilder, makeSparseCQL3RowBuilder, namesQueryFilterSerializer, onDiskAtomComparator, onDiskAtomSerializer
checkRemaining, 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
deletionInfoSerializer, getString, indexComparator, indexReverseComparator, isCompatibleWith, rangeTombstoneSerializer, reverseComparator, serializer, sliceQueryFilterSerializer, sliceSerializer, validate
public 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 addOrUpdateCollection(ColumnIdentifier columnName, CollectionType newCollection)
CellNameType
addOrUpdateCollection
in interface CellNameType
addOrUpdateCollection
in class CompoundSparseCellNameType
public CellName create(Composite prefix, ColumnDefinition column, java.nio.ByteBuffer collectionElement)
CellNameType
create
in interface CellNameType
create
in class AbstractCellNameType
public int compare(Composite c1, Composite c2)
compare
in interface java.util.Comparator<Composite>
compare
in interface CType
compare
in class AbstractCType
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, boolean isStatic)
makeWith
in class CompoundSparseCellNameType
protected Composite copyAndMakeWith(java.nio.ByteBuffer[] components, int size, Composite.EOC eoc, boolean isStatic)
copyAndMakeWith
in class CompoundSparseCellNameType
Copyright © 2020 The Apache Software Foundation