public CellPath deserialize(DataInputPlus in) throws IOException { return CellPath.create(ByteBufferUtil.readWithVIntLength(in)); }
public long unsharedHeapSizeExcludingData() { return EMPTY_SIZE + ObjectSizes.sizeOnHeapExcludingData(value) + (path == null ? 0 : path.unsharedHeapSizeExcludingData()); } }
public ByteBuffer getIndexedValue(ByteBuffer partitionKey, Clustering clustering, CellPath path, ByteBuffer cellValue) { return path.get(0); }
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 int dataSize() { CellPath path = path(); return TypeSizes.sizeof(timestamp()) + TypeSizes.sizeof(ttl()) + TypeSizes.sizeof(localDeletionTime()) + value().remaining() + (path == null ? 0 : path.dataSize()); }
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 ByteBuffer getIndexedValue(ByteBuffer partitionKey, Clustering clustering, CellPath path, ByteBuffer cellValue) { return path.get(0); }
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 int dataSize() { CellPath path = path(); return TypeSizes.sizeof(timestamp()) + TypeSizes.sizeof(ttl()) + TypeSizes.sizeof(localDeletionTime()) + value().remaining() + (path == null ? 0 : path.dataSize()); }
public void digest(MessageDigest digest) { if (isCounterCell()) { CounterContext.instance().updateDigest(digest, value()); } else { digest.update(value().duplicate()); } FBUtilities.updateWithLong(digest, timestamp()); FBUtilities.updateWithInt(digest, ttl()); FBUtilities.updateWithBoolean(digest, isCounterCell()); if (path() != null) path().digest(digest); }
public CellPath deserialize(DataInputPlus in) throws IOException { return CellPath.create(ByteBufferUtil.readWithVIntLength(in)); }
public List<ByteBuffer> serializedValues(Iterator<Cell> cells) { List<ByteBuffer> bbs = new ArrayList<ByteBuffer>(); while (cells.hasNext()) bbs.add(cells.next().path().get(0)); return bbs; }
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 int dataSize() { CellPath path = path(); return TypeSizes.sizeof(timestamp()) + TypeSizes.sizeof(ttl()) + TypeSizes.sizeof(localDeletionTime()) + value().remaining() + (path == null ? 0 : path.dataSize()); }
public long unsharedHeapSizeExcludingData() { return EMPTY_SIZE + ObjectSizes.sizeOnHeapExcludingData(value) + (path == null ? 0 : path.unsharedHeapSizeExcludingData()); } }