public class BufferCell extends AbstractCell
comparator, MAX_DELETION_TIME, NO_DELETION_TIME, NO_TTL, serializercolumn| Constructor and Description |
|---|
BufferCell(ColumnDefinition column,
long timestamp,
int ttl,
int localDeletionTime,
java.nio.ByteBuffer value,
CellPath path) |
| Modifier and Type | Method and Description |
|---|---|
Cell |
copy(AbstractAllocator allocator) |
static BufferCell |
expiring(ColumnDefinition column,
long timestamp,
int ttl,
int nowInSec,
java.nio.ByteBuffer value) |
static BufferCell |
expiring(ColumnDefinition column,
long timestamp,
int ttl,
int nowInSec,
java.nio.ByteBuffer value,
CellPath path) |
static BufferCell |
live(ColumnDefinition column,
long timestamp,
java.nio.ByteBuffer value) |
static BufferCell |
live(ColumnDefinition 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(ColumnDefinition column,
long timestamp,
int nowInSec) |
static BufferCell |
tombstone(ColumnDefinition column,
long timestamp,
int nowInSec,
CellPath path) |
int |
ttl()
The cell ttl.
|
long |
unsharedHeapSizeExcludingData() |
java.nio.ByteBuffer |
value()
The cell value.
|
Cell |
withUpdatedColumn(ColumnDefinition newColumn) |
Cell |
withUpdatedTimestampAndLocalDeletionTime(long newTimestamp,
int newLocalDeletionTime) |
Cell |
withUpdatedValue(java.nio.ByteBuffer newValue) |
dataSize, digest, equals, hashCode, isCounterCell, isExpiring, isLive, isTombstone, markCounterLocalToBeCleared, maxTimestamp, purge, toString, updateAllTimestamp, validatecolumnpublic BufferCell(ColumnDefinition column, long timestamp, int ttl, int localDeletionTime, java.nio.ByteBuffer value, CellPath path)
public static BufferCell live(ColumnDefinition column, long timestamp, java.nio.ByteBuffer value)
public static BufferCell live(ColumnDefinition column, long timestamp, java.nio.ByteBuffer value, CellPath path)
public static BufferCell expiring(ColumnDefinition column, long timestamp, int ttl, int nowInSec, java.nio.ByteBuffer value)
public static BufferCell expiring(ColumnDefinition column, long timestamp, int ttl, int nowInSec, java.nio.ByteBuffer value, CellPath path)
public static BufferCell tombstone(ColumnDefinition column, long timestamp, int nowInSec)
public static BufferCell tombstone(ColumnDefinition column, long timestamp, int nowInSec, CellPath path)
public long timestamp()
Cellpublic int ttl()
Cellpublic int localDeletionTime()
CelllocalDeletionTime in class CellNO_DELETION_TIME if the cell is neither
a tombstone nor an expiring one.public java.nio.ByteBuffer value()
Cellpublic CellPath path()
Cellpublic Cell withUpdatedColumn(ColumnDefinition newColumn)
withUpdatedColumn in class Cellpublic Cell withUpdatedValue(java.nio.ByteBuffer newValue)
withUpdatedValue in class Cellpublic Cell withUpdatedTimestampAndLocalDeletionTime(long newTimestamp, int newLocalDeletionTime)
withUpdatedTimestampAndLocalDeletionTime in class Cellpublic Cell copy(AbstractAllocator allocator)
copy in class AbstractCellpublic long unsharedHeapSizeExcludingData()
unsharedHeapSizeExcludingData in class ColumnDataCopyright © 2018 The Apache Software Foundation