Class DeflateCompressor
java.lang.Object
org.elasticsearch.common.compress.DeflateCompressor
- All Implemented Interfaces:
Compressor
public class DeflateCompressor extends java.lang.Object implements Compressor
Compressor implementation based on the DEFLATE compression algorithm.-
Constructor Summary
Constructors Constructor Description DeflateCompressor() -
Method Summary
Modifier and Type Method Description booleanisCompressed(BytesReference bytes)StreamInputstreamInput(StreamInput in)StreamOutputstreamOutput(StreamOutput out)Creates a new stream output that compresses the contents and writes to the provided stream output.
-
Constructor Details
-
DeflateCompressor
public DeflateCompressor()
-
-
Method Details
-
isCompressed
- Specified by:
isCompressedin interfaceCompressor
-
streamInput
- Specified by:
streamInputin interfaceCompressor- Throws:
java.io.IOException
-
streamOutput
Description copied from interface:CompressorCreates a new stream output that compresses the contents and writes to the provided stream output. Closing the returnedStreamOutputwill close the provided stream output.- Specified by:
streamOutputin interfaceCompressor- Throws:
java.io.IOException
-