Class 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 Detail

      • CompressorFactory

        public CompressorFactory()
    • Method Detail

      • 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 interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable