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 boolean
isCompressed(BytesReference bytes)
StreamInput
streamInput(StreamInput in)
StreamOutput
streamOutput(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:
isCompressed
in interfaceCompressor
-
streamInput
- Specified by:
streamInput
in interfaceCompressor
- Throws:
java.io.IOException
-
streamOutput
Description copied from interface:Compressor
Creates a new stream output that compresses the contents and writes to the provided stream output. Closing the returnedStreamOutput
will close the provided stream output.- Specified by:
streamOutput
in interfaceCompressor
- Throws:
java.io.IOException
-