Class QueryCanonicalizer


  • public class QueryCanonicalizer
    extends java.lang.Object
    Query normalizer and sanity checker.
    Author:
    bratseth
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String queryCanonicalization
      The name of the operation performed by this, for use in search chain ordering
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String canonicalize​(Query query)
      Validates this query and carries out possible operations on this query which simplifies it without changing its semantics.
      static java.lang.String canonicalize​(QueryTree query)
      Canonicalize this query
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • queryCanonicalization

        public static final java.lang.String queryCanonicalization
        The name of the operation performed by this, for use in search chain ordering
        See Also:
        Constant Field Values
    • Constructor Detail

      • QueryCanonicalizer

        public QueryCanonicalizer()
    • Method Detail

      • canonicalize

        public static java.lang.String canonicalize​(Query query)
        Validates this query and carries out possible operations on this query which simplifies it without changing its semantics.
        Returns:
        null if the query is valid, an error message if it is invalid
      • canonicalize

        public static java.lang.String canonicalize​(QueryTree query)
        Canonicalize this query
        Returns:
        null if the query is valid, an error message if it is invalid