Package org.terrier.structures.indexing
Class CompressionFactory
- java.lang.Object
-
- org.terrier.structures.indexing.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 isCompressionFactory.BitCompressionConfiguration
. You can change the CompressionConfiguration for either the direct or inverted index by using the properties (other posting index structures are likewise supported):- indexing.direct.compression.configuration - name of the
CompressionFactory.CompressionConfiguration
class to use for compressing the direct index - indexing.inverted.compression.configuration - name of the
CompressionFactory.CompressionConfiguration
class to use for compressing the inverted index
- Since:
- 4.0
- indexing.direct.compression.configuration - name of the
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompressionFactory.BitCompressionConfiguration
static class
CompressionFactory.BitIdOnlyCompressionConfiguration
static class
CompressionFactory.CompressionConfiguration
A configuration object used by the disk indexers for configuring the compression for direct and inverted files.
-
Constructor Summary
Constructors Constructor Description CompressionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CompressionFactory.CompressionConfiguration
getCompressionConfiguration(java.lang.String structureName, java.lang.String[] fieldNames, boolean blocks)
Deprecated.static CompressionFactory.CompressionConfiguration
getCompressionConfiguration(java.lang.String structureName, java.lang.String[] fieldNames, int hasBlocks, int maxBlocks)
-
-
-
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
-
-