@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 void digest(MessageDigest digest) { digest.update(value().duplicate()); FBUtilities.updateWithLong(digest, timestamp()); FBUtilities.updateWithInt(digest, ttl()); FBUtilities.updateWithBoolean(digest, isCounterCell()); if (path() != null) path().digest(digest); }
public Cell updateAllTimestamp(long newTimestamp) { return new BufferCell(column, isTombstone() ? newTimestamp - 1 : newTimestamp, ttl(), localDeletionTime(), value(), path()); }
public Cell updateAllTimestamp(long newTimestamp) { return new BufferCell(column, isTombstone() ? newTimestamp - 1 : newTimestamp, ttl(), localDeletionTime(), value(), path()); }
public Cell updateAllTimestamp(long newTimestamp) { return new BufferCell(column, isTombstone() ? newTimestamp - 1 : newTimestamp, 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()); }