Class CompressorFactory
java.lang.Object
org.elasticsearch.common.compress.CompressorFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Compressor
compressor(BytesReference bytes)
static boolean
isCompressed(BytesReference bytes)
static BytesReference
uncompress(BytesReference bytes)
Decompress the providedBytesReference
.static BytesReference
uncompressIfNeeded(BytesReference bytes)
Uncompress the provided data, data can be detected as compressed usingisCompressed(BytesReference)
.
-
Field Details
-
COMPRESSOR
-
-
Constructor Details
-
CompressorFactory
public CompressorFactory()
-
-
Method Details
-
isCompressed
-
compressor
-
uncompressIfNeeded
Uncompress the provided data, data can be detected as compressed usingisCompressed(BytesReference)
.- Throws:
NullPointerException
- a NullPointerException will be thrown when bytes is nullIOException
-
uncompress
Decompress the providedBytesReference
.- Throws:
IOException
-