org.apache.hadoop.hive.ql.io.orc
Interface DirectDecompressionCodec


public interface DirectDecompressionCodec


Method Summary
 boolean compress(ByteBuffer in, ByteBuffer out, ByteBuffer overflow)
          Compress the in buffer to the out buffer.
 void decompress(ByteBuffer in, ByteBuffer out)
          Decompress the in buffer to the out buffer.
 void directDecompress(ByteBuffer in, ByteBuffer out)
           
 boolean isAvailable()
           
 

Method Detail

isAvailable

boolean isAvailable()

directDecompress

void directDecompress(ByteBuffer in,
                      ByteBuffer out)
                      throws IOException
Throws:
IOException

compress

boolean compress(ByteBuffer in,
                 ByteBuffer out,
                 ByteBuffer overflow)
                 throws IOException
Compress the in buffer to the out buffer.

Parameters:
in - the bytes to compress
out - the uncompressed bytes
overflow - put any additional bytes here
Returns:
true if the output is smaller than input
Throws:
IOException

decompress

void decompress(ByteBuffer in,
                ByteBuffer out)
                throws IOException
Decompress the in buffer to the out buffer.

Parameters:
in - the bytes to decompress
out - the decompressed bytes
Throws:
IOException


Copyright © 2014 The Apache Software Foundation. All rights reserved.