@Override public Cell getFirstKeyCellInBlock(ByteBuff block) { block.mark(); int keyLength = block.getInt(); block.getInt(); ByteBuffer key = block.asSubByteBuffer(keyLength).duplicate(); block.reset(); return createFirstKeyCell(key, keyLength); }
@Override public void endBlockEncoding(HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader) throws IOException { RowIndexEncodingState state = (RowIndexEncodingState) encodingCtx .getEncodingState(); RowIndexEncoderV1 encoder = state.encoder; encoder.flush(); postEncoding(encodingCtx); }
@Override public void endBlockEncoding(HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader) throws IOException { RowIndexEncodingState state = (RowIndexEncodingState) encodingCtx .getEncodingState(); RowIndexEncoderV1 encoder = state.encoder; encoder.flush(); postEncoding(encodingCtx); }
@Override public Cell getFirstKeyCellInBlock(ByteBuff block) { block.mark(); int keyLength = block.getInt(); block.getInt(); ByteBuffer key = block.asSubByteBuffer(keyLength).duplicate(); block.reset(); return createFirstKeyCell(key, keyLength); }
@Override public void endBlockEncoding(HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader) throws IOException { RowIndexEncodingState state = (RowIndexEncodingState) encodingCtx .getEncodingState(); RowIndexEncoderV1 encoder = state.encoder; encoder.flush(); postEncoding(encodingCtx); }
@Override public Cell getFirstKeyCellInBlock(ByteBuff block) { block.mark(); int keyLength = block.getInt(); block.getInt(); ByteBuffer key = block.asSubByteBuffer(keyLength).duplicate(); block.reset(); return createFirstKeyCell(key, keyLength); }