public abstract class AbstractCellNameType extends AbstractCType implements CellNameType
CellNameType.Deserializer
CType.Serializer
isByteOrderComparable
Modifier | Constructor and Description |
---|---|
protected |
AbstractCellNameType(boolean isByteOrderComparable) |
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.
|
java.util.Comparator<java.lang.Object> |
asymmetricColumnComparator(boolean isRightNative) |
CellName |
cellFromByteBuffer(java.nio.ByteBuffer bytes)
Deserialize a Composite from a ByteBuffer.
|
ISerializer<CellName> |
cellSerializer() |
ColumnToCollectionType |
collectionType()
The type of the collections (or null if the type does not have any non-frozen collections).
|
java.util.Comparator<Cell> |
columnComparator(boolean isRightNative) |
java.util.Comparator<Cell> |
columnReverseComparator() |
ColumnSerializer |
columnSerializer() |
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.
|
IVersionedSerializer<IDiskAtomFilter> |
diskAtomFilterSerializer() |
boolean |
hasCollections()
Whether or not there is some collections defined in this type.
|
Composite |
make(java.lang.Object... components)
Convenience method to build composites from their component.
|
protected abstract CellName |
makeCellName(java.nio.ByteBuffer[] components) |
CellName |
makeCellName(java.lang.Object... components)
Convenience method to create cell names given its components.
|
protected static CQL3Row.Builder |
makeDenseCQL3RowBuilder(long now) |
protected static CQL3Row.Builder |
makeSparseCQL3RowBuilder(CFMetaData cfMetaData,
CellNameType type,
long now) |
IVersionedSerializer<NamesQueryFilter> |
namesQueryFilterSerializer() |
java.util.Comparator<OnDiskAtom> |
onDiskAtomComparator() |
OnDiskAtom.Serializer |
onDiskAtomSerializer() |
CellName |
rowMarker(Composite prefix)
Creates a row marker for the CQL3 having the provided clustering prefix.
|
Composite |
staticPrefix()
The prefix to use for static columns.
|
boolean |
supportCollections()
Whether or not this type layout support collections.
|
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
addCQL3Column, clusteringPrefixSize, CQL3RowBuilder, create, isDense, newDeserializer, prefixBuilder, removeCQL3Column, setSubtype
asAbstractType, builder, compare, deletionInfoSerializer, fromByteBuffer, getString, indexComparator, indexReverseComparator, isCompatibleWith, isCompound, rangeTombstoneSerializer, reverseComparator, serializer, size, sliceQueryFilterSerializer, sliceSerializer, subtype, validate
protected AbstractCellNameType(boolean isByteOrderComparable)
public final java.util.Comparator<Cell> columnComparator(boolean isRightNative)
columnComparator
in interface CellNameType
public final java.util.Comparator<java.lang.Object> asymmetricColumnComparator(boolean isRightNative)
asymmetricColumnComparator
in interface CellNameType
public java.util.Comparator<Cell> columnReverseComparator()
columnReverseComparator
in interface CellNameType
public java.util.Comparator<OnDiskAtom> onDiskAtomComparator()
onDiskAtomComparator
in interface CellNameType
public ISerializer<CellName> cellSerializer()
cellSerializer
in interface CellNameType
public ColumnSerializer columnSerializer()
columnSerializer
in interface CellNameType
public OnDiskAtom.Serializer onDiskAtomSerializer()
onDiskAtomSerializer
in interface CellNameType
public IVersionedSerializer<NamesQueryFilter> namesQueryFilterSerializer()
namesQueryFilterSerializer
in interface CellNameType
public IVersionedSerializer<IDiskAtomFilter> diskAtomFilterSerializer()
diskAtomFilterSerializer
in interface CellNameType
public CellName cellFromByteBuffer(java.nio.ByteBuffer bytes)
CellNameType
cellFromByteBuffer
in interface CellNameType
public CellName create(Composite prefix, ColumnDefinition column, java.nio.ByteBuffer collectionElement)
CellNameType
create
in interface CellNameType
public CellName rowMarker(Composite prefix)
CellNameType
rowMarker
in interface CellNameType
public Composite staticPrefix()
CellNameType
staticPrefix
in interface CellNameType
public boolean hasCollections()
CellNameType
hasCollections
in interface CellNameType
public boolean supportCollections()
CellNameType
supportCollections
in interface CellNameType
public ColumnToCollectionType collectionType()
CellNameType
collectionType
in interface CellNameType
public CellNameType addOrUpdateCollection(ColumnIdentifier columnName, CollectionType newCollection)
CellNameType
addOrUpdateCollection
in interface CellNameType
public Composite make(java.lang.Object... components)
CType
make
in interface CType
make
in class AbstractCType
public CellName makeCellName(java.lang.Object... components)
CellNameType
makeCellName
in interface CellNameType
protected abstract CellName makeCellName(java.nio.ByteBuffer[] components)
protected static CQL3Row.Builder makeDenseCQL3RowBuilder(long now)
protected static CQL3Row.Builder makeSparseCQL3RowBuilder(CFMetaData cfMetaData, CellNameType type, long now)
Copyright © 2020 The Apache Software Foundation