public ValueBytes getValue() throws IOException { //value[i] is stored in the following byte range: //startOffsets[i] + keyLengths[i] through valLengths[i] value.reset(keyValBuffer, startOffsets[currStartOffsetIndex] + keyLengths[currStartOffsetIndex], valLengths[currStartOffsetIndex]); return value; }
public ValueBytes createValueBytes() { ValueBytes val = null; if (!decompress || blockCompressed) { val = new UncompressedBytes(); } else { val = new CompressedBytes(codec); } return val; }