Package org.elasticsearch.transport
Class DeflateTransportDecompressor
java.lang.Object
org.elasticsearch.transport.DeflateTransportDecompressor
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Releasable
,TransportDecompressor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
decompress
(BytesReference bytesReference) Decompress the provided bytesboolean
isEOS()
pollDecompressedPage
(boolean isEOS)
-
Constructor Details
-
DeflateTransportDecompressor
-
-
Method Details
-
decompress
Description copied from interface:TransportDecompressor
Decompress the provided bytes- Specified by:
decompress
in interfaceTransportDecompressor
- Parameters:
bytesReference
- to decompress- Returns:
- number of compressed bytes consumed
- Throws:
IOException
-
isEOS
public boolean isEOS() -
pollDecompressedPage
- Specified by:
pollDecompressedPage
in interfaceTransportDecompressor
-
getScheme
- Specified by:
getScheme
in interfaceTransportDecompressor
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceReleasable
- Specified by:
close
in interfaceTransportDecompressor
-