Package org.apache.pekko.stream
Class ZstdDecompressionSettings
java.lang.Object
org.apache.pekko.stream.ZstdDecompressionSettings
Settings for the zstd decompression operators,
Compression.zstdDecompress in the Scala and Java DSLs.
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ZstdDecompressionSettingsapply()Scala API: the default settings, chunks of at mostCompression.ZstdDecompressMaxBlockSizebytes, the libzstd window limit and no dictionarystatic ZstdDecompressionSettingscreate()Java API: the default settings, chunks of at mostCompression.ZstdDecompressMaxBlockSizebytes, the libzstd window limit and no dictionaryinttoString()intwithDictionary(ZstdDictionary dictionary) Java API: decompress with a dictionary, which must be the one used for compression.withDictionary(ZstdDictionary dictionary) Scala API: decompress with a dictionary, which must be the one used for compression.withMaxBytesPerChunk(int maxBytesPerChunk) The maximum length of the emittedByteStrings.Decompress without a dictionary, the default.withWindowLogMax(int windowLogMax) The log2 of the largest window that a frame may use, frames that need a larger window fail the stream before the window buffer is allocated.
-
Constructor Details
-
ZstdDecompressionSettings
public ZstdDecompressionSettings()
-
-
Method Details
-
apply
Scala API: the default settings, chunks of at mostCompression.ZstdDecompressMaxBlockSizebytes, the libzstd window limit and no dictionary -
create
Java API: the default settings, chunks of at mostCompression.ZstdDecompressMaxBlockSizebytes, the libzstd window limit and no dictionary -
maxBytesPerChunk
public int maxBytesPerChunk() -
windowLogMax
public int windowLogMax() -
withMaxBytesPerChunk
The maximum length of the emittedByteStrings. Defaults toCompression.ZstdDecompressMaxBlockSize. -
withWindowLogMax
The log2 of the largest window that a frame may use, frames that need a larger window fail the stream before the window buffer is allocated. 0 (the default) uses the libzstd limit of 27 (128 MiB), otherwise it must be greater or equal toCompression.ZstdMinWindowLogand less than or equal toCompression.ZstdMaxWindowLog. For example, RFC 9659 limits the HTTPzstdcontent-coding to a window log of 23 (8 MiB).A value other than 0 requires zstd-jni 1.5.7-25 or later. With an older version, materializing the decompression operator fails with an
UnsupportedOperationException. -
withDictionary
Scala API: decompress with a dictionary, which must be the one used for compression. Its level is ignored. -
withDictionary
Java API: decompress with a dictionary, which must be the one used for compression. Its level is ignored. -
withoutDictionary
Decompress without a dictionary, the default. -
toString
-