Package com.linkedin.venice.compression
Class CompressorFactory
java.lang.Object
com.linkedin.venice.compression.CompressorFactory
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
StorageEngineBackedCompressorFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
createCompressorWithDictionary
(byte[] dictionary, int level) createVersionSpecificCompressorIfNotExist
(CompressionStrategy compressionStrategy, String kafkaTopic, byte[] dictionary) createVersionSpecificCompressorIfNotExist
(CompressionStrategy compressionStrategy, String kafkaTopic, byte[] dictionary, int compressionLevel) getCompressor
(CompressionStrategy compressionStrategy) getVersionSpecificCompressor
(String kafkaTopic) void
removeVersionSpecificCompressor
(String kafkaTopic) boolean
versionSpecificCompressorExists
(String kafkaTopic)
-
Constructor Details
-
CompressorFactory
public CompressorFactory()
-
-
Method Details
-
getCompressor
-
createVersionSpecificCompressorIfNotExist
public VeniceCompressor createVersionSpecificCompressorIfNotExist(CompressionStrategy compressionStrategy, String kafkaTopic, byte[] dictionary) -
createVersionSpecificCompressorIfNotExist
public VeniceCompressor createVersionSpecificCompressorIfNotExist(CompressionStrategy compressionStrategy, String kafkaTopic, byte[] dictionary, int compressionLevel) -
getVersionSpecificCompressor
-
removeVersionSpecificCompressor
-
versionSpecificCompressorExists
-
createCompressorWithDictionary
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-