public abstract class AbstractCellNameType extends AbstractCType implements CellNameType
CellNameType.DeserializerCType.SerializerisByteOrderComparable| 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, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddCQL3Column, clusteringPrefixSize, CQL3RowBuilder, create, isDense, newDeserializer, prefixBuilder, removeCQL3Column, setSubtypeasAbstractType, builder, compare, deletionInfoSerializer, fromByteBuffer, getString, indexComparator, indexReverseComparator, isCompatibleWith, isCompound, rangeTombstoneSerializer, reverseComparator, serializer, size, sliceQueryFilterSerializer, sliceSerializer, subtype, validateprotected AbstractCellNameType(boolean isByteOrderComparable)
public final java.util.Comparator<Cell> columnComparator(boolean isRightNative)
columnComparator in interface CellNameTypepublic final java.util.Comparator<java.lang.Object> asymmetricColumnComparator(boolean isRightNative)
asymmetricColumnComparator in interface CellNameTypepublic java.util.Comparator<Cell> columnReverseComparator()
columnReverseComparator in interface CellNameTypepublic java.util.Comparator<OnDiskAtom> onDiskAtomComparator()
onDiskAtomComparator in interface CellNameTypepublic ISerializer<CellName> cellSerializer()
cellSerializer in interface CellNameTypepublic ColumnSerializer columnSerializer()
columnSerializer in interface CellNameTypepublic OnDiskAtom.Serializer onDiskAtomSerializer()
onDiskAtomSerializer in interface CellNameTypepublic IVersionedSerializer<NamesQueryFilter> namesQueryFilterSerializer()
namesQueryFilterSerializer in interface CellNameTypepublic IVersionedSerializer<IDiskAtomFilter> diskAtomFilterSerializer()
diskAtomFilterSerializer in interface CellNameTypepublic CellName cellFromByteBuffer(java.nio.ByteBuffer bytes)
CellNameTypecellFromByteBuffer in interface CellNameTypepublic CellName create(Composite prefix, ColumnDefinition column, java.nio.ByteBuffer collectionElement)
CellNameTypecreate in interface CellNameTypepublic CellName rowMarker(Composite prefix)
CellNameTyperowMarker in interface CellNameTypepublic Composite staticPrefix()
CellNameTypestaticPrefix in interface CellNameTypepublic boolean hasCollections()
CellNameTypehasCollections in interface CellNameTypepublic boolean supportCollections()
CellNameTypesupportCollections in interface CellNameTypepublic ColumnToCollectionType collectionType()
CellNameTypecollectionType in interface CellNameTypepublic CellNameType addOrUpdateCollection(ColumnIdentifier columnName, CollectionType newCollection)
CellNameTypeaddOrUpdateCollection in interface CellNameTypepublic Composite make(java.lang.Object... components)
CTypemake in interface CTypemake in class AbstractCTypepublic CellName makeCellName(java.lang.Object... components)
CellNameTypemakeCellName in interface CellNameTypeprotected 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 © 2018 The Apache Software Foundation