@Override public int encode(Cell cell, HFileBlockEncodingContext encodingCtx, DataOutputStream out) throws IOException { NoneEncodingState state = (NoneEncodingState) encodingCtx .getEncodingState(); NoneEncoder encoder = state.encoder; return encoder.write(cell); }
@Override public int internalEncode(Cell cell, HFileBlockDefaultEncodingContext encodingContext, DataOutputStream out) throws IOException { CopyKeyEncodingState state = (CopyKeyEncodingState) encodingContext .getEncodingState(); NoneEncoder encoder = state.encoder; return encoder.write(cell); }
public int write(Cell cell) throws IOException { // checkRow uses comparator to check we are writing in order. if (!checkRow(cell)) { if (startOffset < 0) { startOffset = out.size(); } rowsOffsetBAOS.writeInt(out.size() - startOffset); } lastCell = cell; return encoder.write(cell); }
@Override public int internalEncode(Cell cell, HFileBlockDefaultEncodingContext encodingContext, DataOutputStream out) throws IOException { CopyKeyEncodingState state = (CopyKeyEncodingState) encodingContext .getEncodingState(); NoneEncoder encoder = state.encoder; return encoder.write(cell); }
@Override public int internalEncode(Cell cell, HFileBlockDefaultEncodingContext encodingContext, DataOutputStream out) throws IOException { CopyKeyEncodingState state = (CopyKeyEncodingState) encodingContext .getEncodingState(); NoneEncoder encoder = state.encoder; return encoder.write(cell); }
public int write(Cell cell) throws IOException { // checkRow uses comparator to check we are writing in order. if (!checkRow(cell)) { if (startOffset < 0) { startOffset = out.size(); } rowsOffsetBAOS.writeInt(out.size() - startOffset); } lastCell = cell; return encoder.write(cell); }
public int write(Cell cell) throws IOException { // checkRow uses comparator to check we are writing in order. if (!checkRow(cell)) { if (startOffset < 0) { startOffset = out.size(); } rowsOffsetBAOS.writeInt(out.size() - startOffset); } lastCell = cell; return encoder.write(cell); }