Class BitPostingIndex

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, PostingIndex<BitIndexPointer>

    public class BitPostingIndex
    extends java.lang.Object
    implements PostingIndex<BitIndexPointer>
    Class for various bit compressed index implementations, including parents to current DirectIndex and InvertedIndex implementations. Index properties:
    • index.STRUCTURENAME.data-files - how many files represent this structure.
    • index.STRUCTURENAME.data-source - one of {file,fileinmem} or a class implements BitInSeekable.
    • index.STRUCTURENAME.fields.count - how many fields are in use by this structures.
    Since:
    3.0
    • Field Detail

      • postingImplementation

        protected java.lang.Class<? extends IterablePosting> postingImplementation
      • postingConstructor

        protected java.lang.reflect.Constructor<? extends IterablePosting> postingConstructor
      • fieldCount

        protected int fieldCount
    • Constructor Detail

      • BitPostingIndex

        public BitPostingIndex​(IndexOnDisk _index,
                               java.lang.String _structureName,
                               java.lang.Class<? extends IterablePosting> _postingImplementation)
                        throws java.io.IOException
        Constructs an instance of the BitPostingIndex.
        Parameters:
        _index -
        _structureName -
        _postingImplementation -
        Throws:
        java.io.IOException
      • BitPostingIndex

        public BitPostingIndex​(IndexOnDisk _index,
                               java.lang.String _structureName,
                               DocumentIndex _documentIndex,
                               java.lang.Class<? extends IterablePosting> _postingImplementation)
                        throws java.io.IOException
        Constructs an instance of the BitPostingIndex.
        Parameters:
        _index -
        _structureName -
        _documentIndex -
        _postingImplementation -
        Throws:
        java.io.IOException
      • BitPostingIndex

        public BitPostingIndex​(java.lang.String filename,
                               byte fileCount,
                               java.lang.Class<BasicIterablePosting> _postingImplementation,
                               java.lang.String _dataSource,
                               int _fieldCount)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • BitPostingIndex

        @Deprecated
        protected BitPostingIndex​(java.lang.String filename,
                                  byte fileCount,
                                  java.lang.Class<? extends IterablePosting> _postingImplementation,
                                  java.lang.String _dataSource)
                           throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • BitPostingIndex

        protected BitPostingIndex​(java.lang.String filename,
                                  byte fileCount,
                                  DocumentIndex _doi,
                                  java.lang.Class<? extends IterablePosting> _postingImplementation,
                                  java.lang.String _dataSource,
                                  int _fieldCount)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • setPostingImplementation

        protected void setPostingImplementation​(java.lang.Class<? extends IterablePosting> postingClass)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable