Class CompressionFactory.CompressionConfiguration

    • Field Detail

      • fieldCount

        protected int fieldCount
        number of fields
      • fieldNames

        protected java.lang.String[] fieldNames
        name of fields
      • hasBlocks

        protected int hasBlocks
        is there blocks: 0 (no), 1 (yes: 1 block per token), more than 1 (blocks are for more than one token)
      • maxBlocks

        protected int maxBlocks
        maximum number of blocks
      • structureName

        protected java.lang.String structureName
    • Constructor Detail

      • CompressionConfiguration

        public CompressionConfiguration​(java.lang.String structureName,
                                        java.lang.String[] fieldNames,
                                        int hasBlocks,
                                        int maxBlocks)
    • Method Detail

      • getPostingOutputStream

        public abstract AbstractPostingOutputStream getPostingOutputStream​(java.lang.String filename)
        Write a file of postings to the given location
      • getPostingIteratorClass

        public abstract java.lang.Class<? extends IterablePosting> getPostingIteratorClass()
        What is the posting iterator class for this structure
      • getStructureClass

        public abstract java.lang.Class<? extends PostingIndex<?>> getStructureClass()
        What is the structure class for this structure
      • getStructureInputStreamClass

        public abstract java.lang.Class<? extends java.util.Iterator<IterablePosting>> getStructureInputStreamClass()
        What is the input stream class for this structure
      • getStructureFileExtension

        public abstract java.lang.String getStructureFileExtension()
        What is the file extension for this structure. Usually ".bf" for BitFile and ".if" for files containing compressed integers
      • writeIndexProperties

        public void writeIndexProperties​(PropertiesIndex index,
                                         java.lang.String pointerSourceStream)
        Update the index's properties for this structure