Interface IIndex

  • All Known Implementing Classes:
    Index

    public interface IIndex
    An IIndex is the interface used to generate an index file, and to make queries on this index.
    • Method Detail

      • getNumDocuments

        int getNumDocuments()
                     throws IOException
        Returns the number of documents indexed.
        Throws:
        IOException
      • getNumWords

        int getNumWords()
                 throws IOException
        Returns the number of unique words indexed.
        Throws:
        IOException
      • close

        void close()
        Closes the index file if open
        Since:
        5.0
      • setDoCache

        void setDoCache​(boolean doCache)
        sets a boolean indicating the index file will be cached and should remain open and in-memory
        Parameters:
        doCache -
        Since:
        5.0