Package org.apache.hadoop.hbase.io

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


  }

  @Override
  public void prepareDecoding(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader,
      ByteBuffer blockBufferWithoutHeader, ByteBuffer onDiskBlock) throws IOException {
    InputStream in = new DataInputStream(new ByteBufferInputStream(onDiskBlock));

    Encryption.Context cryptoContext = fileContext.getEncryptionContext();
    if (cryptoContext != Encryption.Context.NONE) {

      Cipher cipher = cryptoContext.getCipher();
View Full Code Here


   * @return a byte stream reading the data + checksum of this block
   */
  public DataInputStream getByteStream() {
    ByteBuffer dup = this.buf.duplicate();
    dup.position(this.headerSize());
    return new DataInputStream(new ByteBufferInputStream(dup));
  }
View Full Code Here

TOP

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

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.