Package com.linkedin.venice.compression
Class CompressorFactory
- java.lang.Object
-
- com.linkedin.venice.compression.CompressorFactory
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
StorageEngineBackedCompressorFactory
public class CompressorFactory extends java.lang.Object implements java.io.Closeable, java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description CompressorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
VeniceCompressor
createCompressorWithDictionary(byte[] dictionary, int level)
VeniceCompressor
createVersionSpecificCompressorIfNotExist(CompressionStrategy compressionStrategy, java.lang.String kafkaTopic, byte[] dictionary)
VeniceCompressor
createVersionSpecificCompressorIfNotExist(CompressionStrategy compressionStrategy, java.lang.String kafkaTopic, byte[] dictionary, int compressionLevel)
VeniceCompressor
getCompressor(CompressionStrategy compressionStrategy)
VeniceCompressor
getVersionSpecificCompressor(java.lang.String kafkaTopic)
void
removeVersionSpecificCompressor(java.lang.String kafkaTopic)
boolean
versionSpecificCompressorExists(java.lang.String kafkaTopic)
-
-
-
Method Detail
-
getCompressor
public VeniceCompressor getCompressor(CompressionStrategy compressionStrategy)
-
createVersionSpecificCompressorIfNotExist
public VeniceCompressor createVersionSpecificCompressorIfNotExist(CompressionStrategy compressionStrategy, java.lang.String kafkaTopic, byte[] dictionary)
-
createVersionSpecificCompressorIfNotExist
public VeniceCompressor createVersionSpecificCompressorIfNotExist(CompressionStrategy compressionStrategy, java.lang.String kafkaTopic, byte[] dictionary, int compressionLevel)
-
getVersionSpecificCompressor
public VeniceCompressor getVersionSpecificCompressor(java.lang.String kafkaTopic)
-
removeVersionSpecificCompressor
public void removeVersionSpecificCompressor(java.lang.String kafkaTopic)
-
versionSpecificCompressorExists
public boolean versionSpecificCompressorExists(java.lang.String kafkaTopic)
-
createCompressorWithDictionary
public VeniceCompressor createCompressorWithDictionary(byte[] dictionary, int level)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-