Class CompressionFactory


  • public class CompressionFactory
    extends java.lang.Object
    Configures the compression to be used when creating an IndexOnDisk. In particular, the property indexing.compression.configuration defines the name of a class of type CompressionConfiguration, which is used to configure define the classes to use for writing and reading of the compressed index structures. The default CompressionConfiguration is CompressionFactory.BitCompressionConfiguration. You can change the CompressionConfiguration for either the direct or inverted index by using the properties (other posting index structures are likewise supported):
    Since:
    4.0
    • Constructor Detail

      • CompressionFactory

        public CompressionFactory()
    • Method Detail

      • getCompressionConfiguration

        @Deprecated
        public static CompressionFactory.CompressionConfiguration getCompressionConfiguration​(java.lang.String structureName,
                                                                                              java.lang.String[] fieldNames,
                                                                                              boolean blocks)
        Deprecated.
      • getCompressionConfiguration

        public static CompressionFactory.CompressionConfiguration getCompressionConfiguration​(java.lang.String structureName,
                                                                                              java.lang.String[] fieldNames,
                                                                                              int hasBlocks,
                                                                                              int maxBlocks)
        Since:
        4.0