Class Operator

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    DateRangeOp, MultiTermOp, SingleTermOp

    public abstract class Operator
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    A match op is a possible query "term" in the query
    Since:
    5.0
    See Also:
    Serialized Form
    • Field Detail

      • IGNORE_LOW_IDF_TERMS

        protected static boolean IGNORE_LOW_IDF_TERMS
    • Constructor Detail

      • Operator

        public Operator()
    • Method Detail

      • toString

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

        public boolean equals​(java.lang.Object _o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • clone

        public Operator clone()
        Overrides:
        clone in class java.lang.Object
      • getPostingIterator

        public abstract org.apache.commons.lang3.tuple.Pair<EntryStatistics,​IterablePosting> getPostingIterator​(Index index)
                                                                                                               throws java.io.IOException
        get posting iterator for this query op.
        Returns:
        Pair, but Pair.of(null,null) if term not found
        Throws:
        java.io.IOException
      • parse

        public static Operator parse​(java.lang.String stringRep)