public abstract class AbstractCellNameType extends AbstractCType implements CellNameType
CellNameType.Deserializer
CType.Serializer
Modifier | Constructor and Description |
---|---|
protected |
AbstractCellNameType() |
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.
|
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 has not collections).
|
java.util.Comparator<Cell> |
columnComparator() |
java.util.Comparator<Cell> |
columnReverseComparator() |
ColumnSerializer |
columnSerializer() |
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.
|
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(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.
|
boolean |
supportCollections()
Whether or not this type layout support collections.
|
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
addCQL3Column, clusteringPrefixSize, CQL3RowBuilder, create, isDense, newDeserializer, prefixBuilder, removeCQL3Column, setSubtype
asAbstractType, builder, deletionInfoSerializer, fromByteBuffer, getString, indexComparator, indexReverseComparator, indexSerializer, isCompatibleWith, isCompound, rangeTombstoneSerializer, reverseComparator, rowIndexEntrySerializer, serializer, size, sliceQueryFilterSerializer, sliceSerializer, subtype, validate
public java.util.Comparator<Cell> columnComparator()
columnComparator
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, ColumnIdentifier columnName, java.nio.ByteBuffer collectionElement)
CellNameType
create
in interface CellNameType
public CellName rowMarker(Composite prefix)
CellNameType
rowMarker
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 addCollection(ColumnIdentifier columnName, CollectionType newCollection)
CellNameType
addCollection
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(long now)
Copyright © 2014 The Apache Software Foundation