@Override public ExtendedCell deepClone() { Cell clonedBaseCell = ((ExtendedCell) this.cell).deepClone(); return new TagRewriteCell(clonedBaseCell, this.tags); } }
@Override public int getSerializedSize(boolean withTags) { return super.getSerializedSize(withTags) - this.cell.getValueLength() + this.value.length; }
@Override public long heapSize() { long sum = ClassSize.REFERENCE + super.heapSize(); if (this.value != null) { sum += ClassSize.sizeOf(this.value); } return sum; }
@Override public ExtendedCell deepClone() { Cell clonedBaseCell = ((ExtendedCell) this.cell).deepClone(); return new TagRewriteCell(clonedBaseCell, this.tags); } }
/** * @return A new cell which is having the extra tags also added to it. */ public static Cell createCell(Cell cell, byte[] tags) { if (cell instanceof ByteBufferExtendedCell) { return new TagRewriteByteBufferExtendedCell((ByteBufferExtendedCell) cell, tags); } return new TagRewriteCell(cell, tags); }
@Override public ExtendedCell deepClone() { Cell clonedBaseCell = ((ExtendedCell) this.cell).deepClone(); if (clonedBaseCell instanceof ByteBufferExtendedCell) { return new TagRewriteByteBufferExtendedCell((ByteBufferExtendedCell) clonedBaseCell, this.tags); } return new TagRewriteCell(clonedBaseCell, this.tags); }
@Override public int getSerializedSize(boolean withTags) { return super.getSerializedSize(withTags) - this.cell.getValueLength() + this.value.length; }
@Override public long heapSize() { long sum = ClassSize.REFERENCE + super.heapSize(); if (this.value != null) { sum += ClassSize.sizeOf(this.value); } return sum; }
/** * @return A new cell which is having the extra tags also added to it. */ public static Cell createCell(Cell cell, byte[] tags) { if (cell instanceof ByteBufferExtendedCell) { return new TagRewriteByteBufferExtendedCell((ByteBufferExtendedCell) cell, tags); } return new TagRewriteCell(cell, tags); }
@Override public ExtendedCell deepClone() { Cell clonedBaseCell = ((ExtendedCell) this.cell).deepClone(); if (clonedBaseCell instanceof ByteBufferExtendedCell) { return new TagRewriteByteBufferExtendedCell((ByteBufferExtendedCell) clonedBaseCell, this.tags); } return new TagRewriteCell(clonedBaseCell, this.tags); }
@Override public long heapSize() { long sum = ClassSize.REFERENCE + super.heapSize(); if (this.value != null) { sum += ClassSize.sizeOf(this.value); } return sum; }
@Override public int getSerializedSize(boolean withTags) { return super.getSerializedSize(withTags) - this.cell.getValueLength() + this.value.length; }
@Override public ExtendedCell deepClone() { Cell clonedBaseCell = ((ExtendedCell) this.cell).deepClone(); if (clonedBaseCell instanceof ByteBufferExtendedCell) { return new TagRewriteByteBufferExtendedCell((ByteBufferExtendedCell) clonedBaseCell, this.tags); } return new TagRewriteCell(clonedBaseCell, this.tags); }
/** * @return A new cell which is having the extra tags also added to it. */ public static Cell createCell(Cell cell, byte[] tags) { if (cell instanceof ByteBufferExtendedCell) { return new TagRewriteByteBufferExtendedCell((ByteBufferExtendedCell) cell, tags); } return new TagRewriteCell(cell, tags); }
@Override public ExtendedCell deepClone() { Cell clonedBaseCell = ((ExtendedCell) this.cell).deepClone(); return new TagRewriteCell(clonedBaseCell, this.tags); } }