@Override public Encoder getEncoder(OutputStream os) { // compression isn't on, do the default thing if (this.compression == null) { return new IndexKeyValueEncoder(os); } // compression is on, return our one that will handle putting in the correct markers Encoder encoder = super.getEncoder(os); return new CompressedIndexKeyValueEncoder(os, encoder); }
@Override public void write(Cell cell) throws IOException { // make sure we are open checkFlushed(); // use the standard encoding mechanism KeyValueCodec.write(this.dataOutput, PhoenixKeyValueUtil.maybeCopyCell(cell)); } }
@Override public void write(Cell cell) throws IOException { // make sure we are open checkFlushed(); // use the standard encoding mechanism KeyValueCodec.write(this.dataOutput, PhoenixKeyValueUtil.maybeCopyCell(cell)); } }
@Override public Encoder getEncoder(OutputStream os) { // compression isn't on, do the default thing if (this.compression == null) { return new IndexKeyValueEncoder(os); } // compression is on, return our one that will handle putting in the correct markers Encoder encoder = super.getEncoder(os); return new CompressedIndexKeyValueEncoder(os, encoder); }
@Override public void write(Cell cell) throws IOException { // make sure we are open checkFlushed(); // use the standard encoding mechanism KeyValueCodec.write(this.dataOutput, PhoenixKeyValueUtil.maybeCopyCell(cell)); } }
@Override public Encoder getEncoder(OutputStream os) { // compression isn't on, do the default thing if (this.compression == null) { return new IndexKeyValueEncoder(os); } // compression is on, return our one that will handle putting in the correct markers Encoder encoder = super.getEncoder(os); return new CompressedIndexKeyValueEncoder(os, encoder); }
@Override public Encoder getEncoder(OutputStream os) { // compression isn't on, do the default thing if (this.compression == null) { return new IndexKeyValueEncoder(os); } // compression is on, return our one that will handle putting in the correct markers Encoder encoder = super.getEncoder(os); return new CompressedIndexKeyValueEncoder(os, encoder); }
@Override public void write(KeyValue cell) throws IOException { // make sure we are open checkFlushed(); // use the standard encoding mechanism KeyValueCodec.write((DataOutput) this.out, cell); } }