Package io.airlift.compress.v3.lz4
Interface Lz4Compressor
- All Superinterfaces:
Compressor
- All Known Implementing Classes:
Lz4JavaCompressor,Lz4NativeCompressor
public sealed interface Lz4Compressor
extends Compressor
permits Lz4JavaCompressor, Lz4NativeCompressor
-
Method Summary
Modifier and TypeMethodDescriptionintcompress(MemorySegment input, MemorySegment output) static Lz4Compressorcreate()static Lz4Compressorcreate(int acceleration) Methods inherited from interface io.airlift.compress.v3.Compressor
compress, getRetainedSizeInBytes, maxCompressedLength
-
Method Details
-
compress
- Specified by:
compressin interfaceCompressor- Returns:
- number of bytes written to the output
-
create
-
create
-