Class ChangableValueQuery

  • Direct Known Subclasses:
    AbstractTermQuery, TermsQuery, TextQuery

    public abstract class ChangableValueQuery
    extends AbstractLeafQuery
    An interface allowing modification of the String value underlying many {!link Query} implementations. Useful for client-side modification of existing queries.
    • Constructor Detail

      • ChangableValueQuery

        public ChangableValueQuery()
    • Method Detail

      • setValue

        public abstract void setValue​(java.lang.String value)
      • getValue

        public abstract java.lang.String getValue()
      • isEmptyQuery

        public boolean isEmptyQuery()
        Overrides:
        isEmptyQuery in class AbstractLeafQuery
        Returns:
        true if this query is now essentially "empty" (doesn't affect query logic at all) and can now be removed from the query tree. This can happen, for example, if all child queries were removed and the query logic depends on having at least one child query.