@InterfaceAudience.LimitedPrivate(value="Coprocesssor") public interface ExtendedCell extends Cell, SettableSequenceId, SettableTimestamp, HeapSize, Cloneable
Cell with server side required functions. Server side Cell implementations
must implement this.SettableSequenceId,
SettableTimestamp| Modifier and Type | Field and Description |
|---|---|
static int |
CELL_NOT_BASED_ON_CHUNK |
| Modifier and Type | Method and Description |
|---|---|
ExtendedCell |
deepClone()
Does a deep copy of the contents to a new memory area and returns it as a new cell.
|
default int |
getChunkId()
Extracts the id of the backing bytebuffer of this cell if it was obtained from fixed sized
chunks as in case of MemstoreLAB
|
int |
getSerializedSize(boolean withTags) |
void |
write(ByteBuffer buf,
int offset)
Write this Cell into the given buf's offset in a
KeyValue format. |
int |
write(OutputStream out,
boolean withTags)
Write this cell to an OutputStream in a
KeyValue format. |
getFamilyArray, getFamilyLength, getFamilyOffset, getQualifierArray, getQualifierLength, getQualifierOffset, getRowArray, getRowLength, getRowOffset, getSequenceId, getTagsArray, getTagsLength, getTagsOffset, getTimestamp, getTypeByte, getValueArray, getValueLength, getValueOffsetsetSequenceIdsetTimestamp, setTimestampstatic final int CELL_NOT_BASED_ON_CHUNK
int write(OutputStream out, boolean withTags) throws IOException
KeyValue format.
<4 bytes keylength> <4 bytes valuelength> <2 bytes rowlength>
<row> <1 byte columnfamilylength> <columnfamily> <columnqualifier>
<8 bytes timestamp> <1 byte keytype> <value> <2 bytes tagslength>
<tags>out - Stream to which cell has to be writtenwithTags - Whether to write tags.IOExceptionint getSerializedSize(boolean withTags)
withTags - Whether to write tags.KeyValue format.
<4 bytes keylength> <4 bytes valuelength> <2 bytes rowlength>
<row> <1 byte columnfamilylength> <columnfamily> <columnqualifier>
<8 bytes timestamp> <1 byte keytype> <value> <2 bytes tagslength>
<tags>void write(ByteBuffer buf, int offset)
KeyValue format.buf - The buffer where to write the Cell.offset - The offset within buffer, to write the Cell.ExtendedCell deepClone()
default int getChunkId()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.