Package org.apache.hadoop.hbase.io

Examples of org.apache.hadoop.hbase.io.DoubleOutputStream


  static void writeEncodedBlock(Algorithm algo, DataBlockEncoding encoding,
       DataOutputStream dos, final List<Integer> encodedSizes,
      final List<ByteBuffer> encodedBlocks, int blockId,
      boolean includesMemstoreTS, byte[] dummyHeader, boolean useTag) throws IOException {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DoubleOutputStream doubleOutputStream =
        new DoubleOutputStream(dos, baos);
    writeTestKeyValues(doubleOutputStream, blockId, includesMemstoreTS, useTag);
    ByteBuffer rawBuf = ByteBuffer.wrap(baos.toByteArray());
    rawBuf.rewind();

    DataBlockEncoder encoder = encoding.getEncoder();
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.io.DoubleOutputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.