Package org.terrier.structures.indexing
Class CompressionFactory.BitCompressionConfiguration
- java.lang.Object
-
- org.terrier.structures.indexing.CompressionFactory.CompressionConfiguration
-
- org.terrier.structures.indexing.CompressionFactory.BitCompressionConfiguration
-
- Enclosing class:
- CompressionFactory
public static class CompressionFactory.BitCompressionConfiguration extends CompressionFactory.CompressionConfiguration
-
-
Field Summary
-
Fields inherited from class org.terrier.structures.indexing.CompressionFactory.CompressionConfiguration
fieldCount, fieldNames, hasBlocks, maxBlocks, structureName
-
-
Constructor Summary
Constructors Constructor Description BitCompressionConfiguration(java.lang.String structureName, java.lang.String[] fieldNames, int hasBlocks, int maxBlocks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends IterablePosting>
getPostingIteratorClass()
What is the posting iterator class for this structureAbstractPostingOutputStream
getPostingOutputStream(java.lang.String filename)
Write a file of postings to the given locationjava.lang.Class<? extends PostingIndex<?>>
getStructureClass()
What is the structure class for this structurejava.lang.String
getStructureFileExtension()
What is the file extension for this structure.java.lang.Class<? extends java.util.Iterator<IterablePosting>>
getStructureInputStreamClass()
What is the input stream class for this structure-
Methods inherited from class org.terrier.structures.indexing.CompressionFactory.CompressionConfiguration
writeIndexProperties
-
-
-
-
Method Detail
-
getPostingOutputStream
public AbstractPostingOutputStream getPostingOutputStream(java.lang.String filename)
Description copied from class:CompressionFactory.CompressionConfiguration
Write a file of postings to the given location- Specified by:
getPostingOutputStream
in classCompressionFactory.CompressionConfiguration
-
getPostingIteratorClass
public java.lang.Class<? extends IterablePosting> getPostingIteratorClass()
Description copied from class:CompressionFactory.CompressionConfiguration
What is the posting iterator class for this structure- Specified by:
getPostingIteratorClass
in classCompressionFactory.CompressionConfiguration
-
getStructureClass
public java.lang.Class<? extends PostingIndex<?>> getStructureClass()
Description copied from class:CompressionFactory.CompressionConfiguration
What is the structure class for this structure- Specified by:
getStructureClass
in classCompressionFactory.CompressionConfiguration
-
getStructureInputStreamClass
public java.lang.Class<? extends java.util.Iterator<IterablePosting>> getStructureInputStreamClass()
Description copied from class:CompressionFactory.CompressionConfiguration
What is the input stream class for this structure- Specified by:
getStructureInputStreamClass
in classCompressionFactory.CompressionConfiguration
-
getStructureFileExtension
public java.lang.String getStructureFileExtension()
Description copied from class:CompressionFactory.CompressionConfiguration
What is the file extension for this structure. Usually ".bf" for BitFile and ".if" for files containing compressed integers- Specified by:
getStructureFileExtension
in classCompressionFactory.CompressionConfiguration
-
-