public boolean isLive(int nowInSec) { return localDeletionTime() == NO_DELETION_TIME || (ttl() != NO_TTL && nowInSec < localDeletionTime()); }
private String livenessInfoString() { if (isExpiring()) return String.format("ts=%d ttl=%d ldt=%d", timestamp(), ttl(), localDeletionTime()); else if (isTombstone()) return String.format("ts=%d ldt=%d", timestamp(), localDeletionTime()); else return String.format("ts=%d", timestamp()); }
private String livenessInfoString() { if (isExpiring()) return String.format("ts=%d ttl=%d ldt=%d", timestamp(), ttl(), localDeletionTime()); else if (isTombstone()) return String.format("ts=%d ldt=%d", timestamp(), localDeletionTime()); else return String.format("ts=%d", timestamp()); }
private String livenessInfoString() { if (isExpiring()) return String.format("ts=%d ttl=%d ldt=%d", timestamp(), ttl(), localDeletionTime()); else if (isTombstone()) return String.format("ts=%d ldt=%d", timestamp(), localDeletionTime()); else return String.format("ts=%d", timestamp()); }
@Override public int hashCode() { return Objects.hash(column(), isCounterCell(), timestamp(), ttl(), localDeletionTime(), value(), path()); }
@Override public int hashCode() { return Objects.hash(column(), isCounterCell(), timestamp(), ttl(), localDeletionTime(), value(), path()); }
@Override public int hashCode() { return Objects.hash(column(), isCounterCell(), timestamp(), ttl(), localDeletionTime(), value(), path()); }
@Override public int hashCode() { return Objects.hash(column(), isCounterCell(), timestamp(), ttl(), localDeletionTime(), value(), path()); }
public int dataSize() { CellPath path = path(); return TypeSizes.sizeof(timestamp()) + TypeSizes.sizeof(ttl()) + TypeSizes.sizeof(localDeletionTime()) + value().remaining() + (path == null ? 0 : path.dataSize()); }
public int dataSize() { CellPath path = path(); return TypeSizes.sizeof(timestamp()) + TypeSizes.sizeof(ttl()) + TypeSizes.sizeof(localDeletionTime()) + value().remaining() + (path == null ? 0 : path.dataSize()); }
public int dataSize() { CellPath path = path(); return TypeSizes.sizeof(timestamp()) + TypeSizes.sizeof(ttl()) + TypeSizes.sizeof(localDeletionTime()) + value().remaining() + (path == null ? 0 : path.dataSize()); }
public int dataSize() { CellPath path = path(); return TypeSizes.sizeof(timestamp()) + TypeSizes.sizeof(ttl()) + TypeSizes.sizeof(localDeletionTime()) + value().remaining() + (path == null ? 0 : path.dataSize()); }
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 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()); }