Class TextIndex.Atom

  • Enclosing class:
    TextIndex

    public static class TextIndex.Atom
    extends TextIndex.Query
    An atom is a query that matches all documents that contain a specified one-word search term.
    • Constructor Detail

      • Atom

        public Atom​(java.lang.String term)
        Creates an atom that matches term.
        Parameters:
        term - the word to match against the document set
    • Method Detail

      • executeInverse

        public TextIndex.Result executeInverse​(TextIndex ti)
        Returns the inverse of the set of documents containing the search term. This is equivalent to new Not( this ).execute( ti ).
        Parameters:
        ti - the text index to match against
        Returns:
        a result representing the documents that do not contain the search term
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object