DataOutputStream out = new DataOutputStream(baos); this.dataBlockEncoder.startBlockEncoding(encodingCtx, out); ByteBuffer in = getUncompressedBuffer(); in.rewind(); int klength, vlength;
/** * Do the compression. * @return Compressed byte buffer. */ public byte[] doCompressData() { compressedStream.reset(); DataOutputStream dataOut = new DataOutputStream(compressedStream); try { this.dataBlockEncoder.compressKeyValues( dataOut, getUncompressedBuffer(), includesMemstoreTS); } catch (IOException e) { throw new RuntimeException(String.format( "Bug in decoding part of algorithm %s. " + "Probably it requested more bytes than are available.", toString()), e); } return compressedStream.toByteArray(); }
DataOutputStream out = new DataOutputStream(baos); this.dataBlockEncoder.startBlockEncoding(encodingCtx, out); ByteBuffer in = getUncompressedBuffer(); in.rewind(); int klength, vlength;
DataOutputStream out = new DataOutputStream(baos); this.dataBlockEncoder.startBlockEncoding(encodingCtx, out); ByteBuffer in = getUncompressedBuffer(); in.rewind(); int klength, vlength;
DataOutputStream out = new DataOutputStream(baos); this.dataBlockEncoder.startBlockEncoding(encodingCtx, out); ByteBuffer in = getUncompressedBuffer(); in.rewind(); int klength, vlength;