org.apache.hadoop.hive.ql.io.orc
Interface DirectDecompressionCodec
public interface DirectDecompressionCodec
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 compressout
- the uncompressed bytesoverflow
- 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 decompressout
- the decompressed bytes
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All rights reserved.