Package org.apache.orc.impl
Class SnappyCodec
java.lang.Object
org.apache.orc.impl.AircompressorCodec
org.apache.orc.impl.SnappyCodec
- All Implemented Interfaces:
Closeable
,AutoCloseable
,CompressionCodec
,DirectDecompressionCodec
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.orc.CompressionCodec
CompressionCodec.DataKind, CompressionCodec.Options, CompressionCodec.SpeedModifier
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decompress
(ByteBuffer in, ByteBuffer out) Decompress the in buffer to the out buffer.void
destroy()
Closes the codec, releasing the resources.void
directDecompress
(ByteBuffer in, ByteBuffer out) boolean
void
reset()
Resets the codec, preparing it for reuse.Methods inherited from class org.apache.orc.impl.AircompressorCodec
close, compress, getBuffer, getDefaultOptions, getKind
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.orc.CompressionCodec
close, compress, getDefaultOptions, getKind
-
Method Details
-
decompress
Description copied from interface:CompressionCodec
Decompress the in buffer to the out buffer.- Specified by:
decompress
in interfaceCompressionCodec
- Overrides:
decompress
in classAircompressorCodec
- Parameters:
in
- the bytes to decompressout
- the decompressed bytes- Throws:
IOException
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailable
in interfaceDirectDecompressionCodec
-
directDecompress
- Specified by:
directDecompress
in interfaceDirectDecompressionCodec
- Throws:
IOException
-
reset
public void reset()Description copied from interface:CompressionCodec
Resets the codec, preparing it for reuse.- Specified by:
reset
in interfaceCompressionCodec
- Overrides:
reset
in classAircompressorCodec
-
destroy
public void destroy()Description copied from interface:CompressionCodec
Closes the codec, releasing the resources.- Specified by:
destroy
in interfaceCompressionCodec
- Overrides:
destroy
in classAircompressorCodec
-