public class CompoundSparseCellNameType extends AbstractCompoundCellNameType
Modifier and Type | Class and Description |
---|---|
static class |
CompoundSparseCellNameType.WithCollection |
CellNameType.Deserializer
CType.Serializer
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.nio.ByteBuffer,ColumnIdentifier> |
internedIds |
clusteringSize, clusteringType, fullSize, fullType
Constructor and Description |
---|
CompoundSparseCellNameType(java.util.List<AbstractType<?>> types) |
CompoundSparseCellNameType(java.util.List<AbstractType<?>> types,
AbstractType<?> columnNameType) |
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.
|
void |
addCQL3Column(ColumnIdentifier id) |
protected Composite |
copyAndMakeWith(java.nio.ByteBuffer[] components,
int size,
Composite.EOC eoc) |
CQL3Row.Builder |
CQL3RowBuilder(long now)
Creates a new CQL3Row builder for this type.
|
CellName |
create(Composite prefix,
ColumnIdentifier columnName)
Creates a new CellName given a clustering prefix and a CQL3 columnName.
|
protected ColumnIdentifier |
idFor(java.nio.ByteBuffer bb) |
boolean |
isDense()
Whether or not the cell names for this type are dense.
|
protected static CompoundCType |
makeCType(CompoundCType clusteringType,
AbstractType<?> columnNameType,
ColumnToCollectionType collectionType) |
protected Composite |
makeWith(java.nio.ByteBuffer[] components,
int size,
Composite.EOC eoc) |
void |
removeCQL3Column(ColumnIdentifier id) |
CellName |
rowMarker(Composite prefix)
Creates a row marker for the CQL3 having the provided clustering prefix.
|
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.
|
boolean |
supportCollections()
Whether or not this type layout support collections.
|
asAbstractType, builder, clusteringPrefixSize, fromByteBuffer, isCompound, makeCellName, newDeserializer, prefixBuilder, size, subtype
cellFromByteBuffer, cellSerializer, collectionType, columnComparator, columnReverseComparator, columnSerializer, create, diskAtomFilterSerializer, hasCollections, make, makeCellName, makeDenseCQL3RowBuilder, makeSparseCQL3RowBuilder, namesQueryFilterSerializer, onDiskAtomComparator, onDiskAtomSerializer
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
deletionInfoSerializer, getString, indexComparator, indexReverseComparator, indexSerializer, isCompatibleWith, rangeTombstoneSerializer, reverseComparator, rowIndexEntrySerializer, serializer, sliceQueryFilterSerializer, sliceSerializer, validate
protected final java.util.Map<java.nio.ByteBuffer,ColumnIdentifier> internedIds
public CompoundSparseCellNameType(java.util.List<AbstractType<?>> types)
public CompoundSparseCellNameType(java.util.List<AbstractType<?>> types, AbstractType<?> columnNameType)
protected static CompoundCType makeCType(CompoundCType clusteringType, AbstractType<?> columnNameType, ColumnToCollectionType collectionType)
public CellNameType setSubtype(int position, AbstractType<?> newType)
CellNameType
public CellNameType addCollection(ColumnIdentifier columnName, CollectionType newCollection)
CellNameType
addCollection
in interface CellNameType
addCollection
in class AbstractCellNameType
public boolean isDense()
CellNameType
public boolean supportCollections()
CellNameType
supportCollections
in interface CellNameType
supportCollections
in class AbstractCellNameType
public CellName create(Composite prefix, ColumnIdentifier columnName)
CellNameType
public CellName rowMarker(Composite prefix)
CellNameType
rowMarker
in interface CellNameType
rowMarker
in class AbstractCellNameType
protected ColumnIdentifier idFor(java.nio.ByteBuffer bb)
protected Composite makeWith(java.nio.ByteBuffer[] components, int size, Composite.EOC eoc)
makeWith
in class AbstractCompoundCellNameType
protected Composite copyAndMakeWith(java.nio.ByteBuffer[] components, int size, Composite.EOC eoc)
copyAndMakeWith
in class AbstractCompoundCellNameType
public void addCQL3Column(ColumnIdentifier id)
public void removeCQL3Column(ColumnIdentifier id)
public CQL3Row.Builder CQL3RowBuilder(long now)
CellNameType
Copyright © 2014 The Apache Software Foundation