Package org.elasticsearch.transport
Interface TransportDecompressor
- All Superinterfaces:
AutoCloseable
,Closeable
,Releasable
- All Known Implementing Classes:
DeflateTransportDecompressor
,Lz4TransportDecompressor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static IllegalStateException
createIllegalState
(BytesReference bytes) int
decompress
(BytesReference bytesReference) Decompress the provided bytesstatic TransportDecompressor
getDecompressor
(PageCacheRecycler recycler, BytesReference bytes) pollDecompressedPage
(boolean isEOS)
-
Method Details
-
decompress
Decompress the provided bytes- Parameters:
bytesReference
- to decompress- Returns:
- number of compressed bytes consumed
- Throws:
IOException
-
pollDecompressedPage
-
getScheme
Compression.Scheme getScheme() -
close
void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceReleasable
-
getDecompressor
static TransportDecompressor getDecompressor(PageCacheRecycler recycler, BytesReference bytes) throws IOException - Throws:
IOException
-
createIllegalState
-