Package org.apache.hadoop.hbase.io

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


  static void writeEncodedBlock(DataBlockEncoding encoding,
      DataOutputStream dos, final List<Integer> encodedSizes,
      final List<ByteBuffer> encodedBlocks, int blockId,
      boolean includesMemstoreTS) throws IOException {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DoubleOutputStream doubleOutputStream =
        new DoubleOutputStream(dos, baos);

    final int rawBlockSize = writeTestKeyValues(doubleOutputStream,
        blockId, includesMemstoreTS);

    ByteBuffer rawBuf = ByteBuffer.wrap(baos.toByteArray());
View Full Code Here


  static void writeEncodedBlock(DataBlockEncoding encoding,
      DataOutputStream dos, final List<Integer> encodedSizes,
      final List<ByteBuffer> encodedBlocks, int blockId,
      boolean includesMemstoreTS) throws IOException {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DoubleOutputStream doubleOutputStream =
        new DoubleOutputStream(dos, baos);

    final int rawBlockSize = writeTestKeyValues(doubleOutputStream,
        blockId, includesMemstoreTS);

    ByteBuffer rawBuf = ByteBuffer.wrap(baos.toByteArray());
View Full Code Here

  static void writeEncodedBlock(DataBlockEncoding encoding,
      DataOutputStream dos, final List<Integer> encodedSizes,
      final List<ByteBuffer> encodedBlocks, int blockId,
      boolean includesMemstoreTS) throws IOException {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DoubleOutputStream doubleOutputStream =
        new DoubleOutputStream(dos, baos);

    final int rawBlockSize = writeTestKeyValues(doubleOutputStream,
        blockId, includesMemstoreTS);

    ByteBuffer rawBuf = ByteBuffer.wrap(baos.toByteArray());
View Full Code Here

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

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

          // We save uncompressed data in a cache-on-write mode.
          if (baosInMemory == null)
            baosInMemory = new ByteArrayOutputStream();
          baosInMemory.reset();
          baosInMemory.write(DUMMY_HEADER);
          userDataStream = new DataOutputStream(new DoubleOutputStream(
              compressingOutputStream, baosInMemory));
        } else {
          userDataStream = new DataOutputStream(compressingOutputStream);
        }
      }
View Full Code Here

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

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

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

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

  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

  static void writeEncodedBlock(DataBlockEncoding encoding,
      DataOutputStream dos, final List<Integer> encodedSizes,
      final List<ByteBuffer> encodedBlocks, int blockId,
      boolean includesMemstoreTS) throws IOException {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DoubleOutputStream doubleOutputStream =
        new DoubleOutputStream(dos, baos);

    final int rawBlockSize = writeTestKeyValues(doubleOutputStream,
        blockId, includesMemstoreTS);

    ByteBuffer rawBuf = ByteBuffer.wrap(baos.toByteArray());
View Full Code Here

  static void writeEncodedBlock(DataBlockEncoding encoding,
      DataOutputStream dos, final List<Integer> encodedSizes,
      final List<ByteBuffer> encodedBlocks, int blockId,
      boolean includesMemstoreTS) throws IOException {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DoubleOutputStream doubleOutputStream =
        new DoubleOutputStream(dos, baos);

    final int rawBlockSize = writeTestKeyValues(doubleOutputStream,
        blockId, includesMemstoreTS);

    ByteBuffer rawBuf = ByteBuffer.wrap(baos.toByteArray());
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.