public class SuperColumn extends AbstractColumnContainer implements IColumn
OnDiskAtom.Serializer
columns
MAX_NAME_LENGTH
Constructor and Description |
---|
SuperColumn(java.nio.ByteBuffer name,
AbstractType<?> comparator) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(IColumn column,
Allocator allocator) |
IColumn |
cloneMe() |
SuperColumn |
cloneMeShallow() |
int |
dataSize()
This calculates the exact size of the sub columns on the fly
|
IColumn |
diff(IColumn columnNew) |
boolean |
equals(java.lang.Object o) |
int |
getLocalDeletionTime() |
long |
getMarkedForDeleteAt() |
java.lang.String |
getString(AbstractType<?> comparator) |
IColumn |
getSubColumn(java.nio.ByteBuffer columnName) |
java.util.Collection<IColumn> |
getSubColumns() |
int |
hashCode() |
boolean |
isLive()
For a simple column, live == !isMarkedForDelete.
|
IColumn |
localCopy(ColumnFamilyStore cfs)
clones the column for the row cache, interning column names and making copies of other underlying byte buffers
|
IColumn |
localCopy(ColumnFamilyStore cfs,
Allocator allocator)
clones the column for the memtable, interning column names and making copies of other underlying byte buffers.
|
long |
maxTimestamp()
For a standard column, this is the same as timestamp().
|
long |
minTimestamp()
For a standard column, this is the same as timestamp().
|
long |
mostRecentLiveChangeAt() |
long |
mostRecentNonGCableChangeAt(int gcbefore) |
java.nio.ByteBuffer |
name() |
static OnDiskAtom.Serializer |
onDiskSerializer(AbstractType<?> comparator) |
IColumn |
reconcile(IColumn c) |
IColumn |
reconcile(IColumn c,
Allocator allocator) |
int |
serializationFlags() |
int |
serializedSize(TypeSizes typeSizes)
This returns the size of the super-column when serialized.
|
long |
serializedSizeForSSTable() |
static org.apache.cassandra.db.SuperColumnSerializer |
serializer(AbstractType<?> comparator) |
long |
timestamp() |
void |
updateDigest(java.security.MessageDigest digest) |
void |
validateFields(CFMetaData metadata) |
java.nio.ByteBuffer |
value() |
addAll, addAll, addAllWithSizeDelta, addColumn, delete, delete, delete, delete, deletionInfo, getColumn, getColumnCount, getColumnNames, getComparator, getEstimatedColumnCount, getReverseSortedColumns, getSortedColumns, hasIrrelevantData, hasOnlyTombstones, isEmpty, isMarkedForDelete, iterator, iterator, maybeResetDeletionTimes, remove, replace, retainAll, reverseIterator, setDeletionInfo
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addColumn, hasIrrelevantData, isMarkedForDelete
public SuperColumn(java.nio.ByteBuffer name, AbstractType<?> comparator)
public static org.apache.cassandra.db.SuperColumnSerializer serializer(AbstractType<?> comparator)
public static OnDiskAtom.Serializer onDiskSerializer(AbstractType<?> comparator)
public SuperColumn cloneMeShallow()
public IColumn cloneMe()
public java.nio.ByteBuffer name()
name
in interface OnDiskAtom
public java.util.Collection<IColumn> getSubColumns()
getSubColumns
in interface IColumn
public IColumn getSubColumn(java.nio.ByteBuffer columnName)
getSubColumn
in interface IColumn
public int dataSize()
public int serializedSize(TypeSizes typeSizes)
serializedSize
in interface OnDiskAtom
OnDiskAtom.serializedSize(TypeSizes)
public long serializedSizeForSSTable()
serializedSizeForSSTable
in interface OnDiskAtom
public long minTimestamp()
OnDiskAtom
minTimestamp
in interface OnDiskAtom
public long maxTimestamp()
IColumn
maxTimestamp
in interface IColumn
maxTimestamp
in interface OnDiskAtom
public long mostRecentLiveChangeAt()
mostRecentLiveChangeAt
in interface IColumn
public long getMarkedForDeleteAt()
getMarkedForDeleteAt
in interface IColumn
public int getLocalDeletionTime()
getLocalDeletionTime
in interface OnDiskAtom
public long mostRecentNonGCableChangeAt(int gcbefore)
mostRecentNonGCableChangeAt
in interface IColumn
public void addColumn(IColumn column, Allocator allocator)
addColumn
in interface IColumn
addColumn
in interface IColumnContainer
addColumn
in class AbstractColumnContainer
public void updateDigest(java.security.MessageDigest digest)
updateDigest
in interface OnDiskAtom
public java.lang.String getString(AbstractType<?> comparator)
public boolean isLive()
IColumn
public IColumn localCopy(ColumnFamilyStore cfs)
IColumn
public IColumn localCopy(ColumnFamilyStore cfs, Allocator allocator)
IColumn
public int serializationFlags()
serializationFlags
in interface IColumn
public void validateFields(CFMetaData metadata) throws MarshalException
validateFields
in interface IColumn
validateFields
in interface OnDiskAtom
MarshalException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2013 The Apache Software Foundation