public static BufferCell live(ColumnDefinition column, long timestamp, ByteBuffer value, CellPath path) { return new BufferCell(column, timestamp, NO_TTL, NO_DELETION_TIME, value, path); }
public Cell withUpdatedTimestampAndLocalDeletionTime(long newTimestamp, int newLocalDeletionTime) { return new BufferCell(column, newTimestamp, ttl, newLocalDeletionTime, value, path); }
public Cell withUpdatedColumn(ColumnDefinition newColumn) { return new BufferCell(newColumn, timestamp, ttl, localDeletionTime, value, path); }
public static BufferCell expiring(ColumnDefinition column, long timestamp, int ttl, int nowInSec, ByteBuffer value, CellPath path) { assert ttl != NO_TTL; return new BufferCell(column, timestamp, ttl, ExpirationDateOverflowHandling.computeLocalExpirationTime(nowInSec, ttl), value, path); }
public static BufferCell expiring(ColumnDefinition column, long timestamp, int ttl, int nowInSec, ByteBuffer value, CellPath path) { assert ttl != NO_TTL; return new BufferCell(column, timestamp, ttl, ExpirationDateOverflowHandling.computeLocalExpirationTime(nowInSec, ttl), value, path); }
public static BufferCell expiring(ColumnDefinition column, long timestamp, int ttl, int nowInSec, ByteBuffer value, CellPath path) { assert ttl != NO_TTL; return new BufferCell(column, timestamp, ttl, ExpirationDateOverflowHandling.computeLocalExpirationTime(nowInSec, ttl), value, path); }
public Cell copy(AbstractAllocator allocator) { if (!value.hasRemaining()) return this; return new BufferCell(column, timestamp, ttl, localDeletionTime, allocator.clone(value), path == null ? null : path.copy(allocator)); }
public Cell copy(AbstractAllocator allocator) { if (!value.hasRemaining()) return this; return new BufferCell(column, timestamp, ttl, localDeletionTime, allocator.clone(value), path == null ? null : path.copy(allocator)); }
public Cell copy(AbstractAllocator allocator) { if (!value.hasRemaining()) return this; return new BufferCell(column, timestamp, ttl, localDeletionTime, allocator.clone(value), path == null ? null : path.copy(allocator)); }
public Cell copy(AbstractAllocator allocator) { if (!value.hasRemaining()) return this; return new BufferCell(column, timestamp, ttl, localDeletionTime, allocator.clone(value), path == null ? null : path.copy(allocator)); }
public Cell withUpdatedTimestampAndLocalDeletionTime(long newTimestamp, int newLocalDeletionTime) { return new BufferCell(column, newTimestamp, ttl(), newLocalDeletionTime, value(), path()); }
public Cell withUpdatedColumn(ColumnDefinition column) { return new BufferCell(column, timestamp(), ttl(), localDeletionTime(), value(), path()); }
private Cell makeDynamicCell(Cell staticCell) { return new BufferCell(superColumnMapColumn, staticCell.timestamp(), staticCell.ttl(), staticCell.localDeletionTime(), staticCell.value(), CellPath.create(staticCell.column().name.bytes)); }
public Cell copy(AbstractAllocator allocator) { CellPath path = path(); return new BufferCell(column, timestamp(), ttl(), localDeletionTime(), allocator.clone(value()), path == null ? null : path.copy(allocator)); }
public Cell copy(AbstractAllocator allocator) { CellPath path = path(); return new BufferCell(column, timestamp(), ttl(), localDeletionTime(), allocator.clone(value()), path == null ? null : path.copy(allocator)); }
public Cell copy(AbstractAllocator allocator) { CellPath path = path(); return new BufferCell(column, timestamp(), ttl(), localDeletionTime(), allocator.clone(value()), path == null ? null : path.copy(allocator)); }
public Cell markCounterLocalToBeCleared() { if (!isCounterCell()) return this; ByteBuffer value = value(); ByteBuffer marked = CounterContext.instance().markLocalToBeCleared(value); return marked == value ? this : new BufferCell(column, timestamp(), ttl(), localDeletionTime(), marked, path()); }
public Cell markCounterLocalToBeCleared() { if (!isCounterCell()) return this; ByteBuffer value = value(); ByteBuffer marked = CounterContext.instance().markLocalToBeCleared(value); return marked == value ? this : new BufferCell(column, timestamp(), ttl(), localDeletionTime(), marked, path()); }
public Cell markCounterLocalToBeCleared() { if (!isCounterCell()) return this; ByteBuffer value = value(); ByteBuffer marked = CounterContext.instance().markLocalToBeCleared(value); return marked == value ? this : new BufferCell(column, timestamp(), ttl(), localDeletionTime(), marked, path()); }
public Cell markCounterLocalToBeCleared() { if (!isCounterCell()) return this; ByteBuffer value = value(); ByteBuffer marked = CounterContext.instance().markLocalToBeCleared(value); return marked == value ? this : new BufferCell(column, timestamp(), ttl(), localDeletionTime(), marked, path()); }