public class ArrayCell extends AbstractCell<byte[]>
Cell.Factory<V>
comparator, MAX_DELETION_TIME, NO_DELETION_TIME, NO_TTL, serializer
column
Constructor and Description |
---|
ArrayCell(ColumnMetadata column,
long timestamp,
int ttl,
int localDeletionTime,
byte[] value,
CellPath path) |
Modifier and Type | Method and Description |
---|---|
ValueAccessor<byte[]> |
accessor() |
Cell<?> |
copy(AbstractAllocator allocator) |
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.
|
int |
ttl()
The cell ttl.
|
long |
unsharedHeapSizeExcludingData() |
byte[] |
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, validate
column, digest
public ArrayCell(ColumnMetadata column, long timestamp, int ttl, int localDeletionTime, byte[] value, CellPath path)
public long timestamp()
Cell
public int ttl()
Cell
public int localDeletionTime()
Cell
localDeletionTime
in class Cell<byte[]>
NO_DELETION_TIME
if the cell is neither
a tombstone nor an expiring one.public ValueAccessor<byte[]> accessor()
public CellPath path()
Cell
public Cell<?> withUpdatedColumn(ColumnMetadata newColumn)
withUpdatedColumn
in class Cell<byte[]>
public Cell<?> withUpdatedValue(java.nio.ByteBuffer newValue)
withUpdatedValue
in class Cell<byte[]>
public Cell<?> withUpdatedTimestampAndLocalDeletionTime(long newTimestamp, int newLocalDeletionTime)
withUpdatedTimestampAndLocalDeletionTime
in class Cell<byte[]>
public Cell<?> withSkippedValue()
Cell
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.withSkippedValue
in class Cell<byte[]>
public Cell<?> copy(AbstractAllocator allocator)
copy
in class AbstractCell<byte[]>
public long unsharedHeapSizeExcludingData()
unsharedHeapSizeExcludingData
in class ColumnData
Copyright © 2009-2021 The Apache Software Foundation