public class BufferCell extends AbstractCell<java.nio.ByteBuffer>
Cell.Factory<V>ColumnData.PostReconciliationFunction, ColumnData.Reconcilercomparator, MAX_DELETION_TIME, NO_DELETION_TIME, NO_TTL, serializercolumn, noOp| Constructor and Description |
|---|
BufferCell(ColumnMetadata column,
long timestamp,
int ttl,
int localDeletionTime,
java.nio.ByteBuffer value,
CellPath path) |
| Modifier and Type | Method and Description |
|---|---|
ValueAccessor<java.nio.ByteBuffer> |
accessor() |
Cell<?> |
clone(ByteBufferCloner cloner) |
static BufferCell |
expiring(ColumnMetadata column,
long timestamp,
int ttl,
int nowInSec,
java.nio.ByteBuffer value) |
static BufferCell |
expiring(ColumnMetadata column,
long timestamp,
int ttl,
int nowInSec,
java.nio.ByteBuffer value,
CellPath path) |
static BufferCell |
live(ColumnMetadata column,
long timestamp,
java.nio.ByteBuffer value) |
static BufferCell |
live(ColumnMetadata column,
long timestamp,
java.nio.ByteBuffer value,
CellPath path) |
int |
localDeletionTime()
The cell local deletion time.
|
CellPath |
path()
For cells belonging to complex types (non-frozen collection and UDT), the
path to the cell.
|
long |
timestamp()
The cell timestamp.
|
static BufferCell |
tombstone(ColumnMetadata column,
long timestamp,
int nowInSec) |
static BufferCell |
tombstone(ColumnMetadata column,
long timestamp,
int nowInSec,
CellPath path) |
int |
ttl()
The cell ttl.
|
long |
unsharedHeapSizeExcludingData() |
java.nio.ByteBuffer |
value() |
Cell<?> |
withSkippedValue()
Used to apply the same optimization as in
Cell.Serializer.deserialize(org.apache.cassandra.io.util.DataInputPlus, org.apache.cassandra.db.LivenessInfo, org.apache.cassandra.schema.ColumnMetadata, org.apache.cassandra.db.SerializationHeader, org.apache.cassandra.db.rows.DeserializationHelper, org.apache.cassandra.db.marshal.ValueAccessor<V>) when
the column is not queried but eventhough it's used for digest calculation. |
Cell<?> |
withUpdatedColumn(ColumnMetadata newColumn) |
Cell<?> |
withUpdatedTimestampAndLocalDeletionTime(long newTimestamp,
int newLocalDeletionTime) |
Cell<?> |
withUpdatedValue(java.nio.ByteBuffer newValue) |
dataSize, digest, equals, equals, hashCode, hasInvalidDeletions, isCounterCell, isExpiring, isLive, isTombstone, markCounterLocalToBeCleared, maxTimestamp, purge, toString, updateAllTimestamp, validatecolumn, digest, reconcilerpublic BufferCell(ColumnMetadata column, long timestamp, int ttl, int localDeletionTime, java.nio.ByteBuffer value, CellPath path)
public static BufferCell live(ColumnMetadata column, long timestamp, java.nio.ByteBuffer value)
public static BufferCell live(ColumnMetadata column, long timestamp, java.nio.ByteBuffer value, CellPath path)
public static BufferCell expiring(ColumnMetadata column, long timestamp, int ttl, int nowInSec, java.nio.ByteBuffer value)
public static BufferCell expiring(ColumnMetadata column, long timestamp, int ttl, int nowInSec, java.nio.ByteBuffer value, CellPath path)
public static BufferCell tombstone(ColumnMetadata column, long timestamp, int nowInSec)
public static BufferCell tombstone(ColumnMetadata column, long timestamp, int nowInSec, CellPath path)
public long timestamp()
Cellpublic int ttl()
Cellpublic int localDeletionTime()
CelllocalDeletionTime in class Cell<java.nio.ByteBuffer>NO_DELETION_TIME if the cell is neither
a tombstone nor an expiring one.public ValueAccessor<java.nio.ByteBuffer> accessor()
public CellPath path()
Cellpublic Cell<?> withUpdatedColumn(ColumnMetadata newColumn)
withUpdatedColumn in class Cell<java.nio.ByteBuffer>public Cell<?> withUpdatedValue(java.nio.ByteBuffer newValue)
withUpdatedValue in class Cell<java.nio.ByteBuffer>public Cell<?> withUpdatedTimestampAndLocalDeletionTime(long newTimestamp, int newLocalDeletionTime)
withUpdatedTimestampAndLocalDeletionTime in class Cell<java.nio.ByteBuffer>public Cell<?> withSkippedValue()
CellCell.Serializer.deserialize(org.apache.cassandra.io.util.DataInputPlus, org.apache.cassandra.db.LivenessInfo, org.apache.cassandra.schema.ColumnMetadata, org.apache.cassandra.db.SerializationHeader, org.apache.cassandra.db.rows.DeserializationHelper, org.apache.cassandra.db.marshal.ValueAccessor<V>) when
the column is not queried but eventhough it's used for digest calculation.withSkippedValue in class Cell<java.nio.ByteBuffer>public Cell<?> clone(ByteBufferCloner cloner)
clone in class AbstractCell<java.nio.ByteBuffer>public long unsharedHeapSizeExcludingData()
unsharedHeapSizeExcludingData in class ColumnDataCopyright © 2009-2022 The Apache Software Foundation