java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.model.search.ConditionBuilder

public class ConditionBuilder extends Object
Methods for building up complex conditions used by the queries.
  • Field Details

    • OR_OPERATOR

      public static final clojure.lang.Symbol OR_OPERATOR
    • AND_OPERATOR

      public static final clojure.lang.Symbol AND_OPERATOR
    • NOT_OPERATOR

      public static final clojure.lang.Symbol NOT_OPERATOR
    • NOT_JOIN_OPERATOR

      public static final clojure.lang.Symbol NOT_JOIN_OPERATOR
    • OR_JOIN

      public static final clojure.lang.Symbol OR_JOIN
    • EQ_OPERATOR

      protected static final clojure.lang.Symbol EQ_OPERATOR
    • NEQ_OPERATOR

      protected static final clojure.lang.Symbol NEQ_OPERATOR
    • GT_OPERATOR

      protected static final clojure.lang.Symbol GT_OPERATOR
    • GTE_OPERATOR

      protected static final clojure.lang.Symbol GTE_OPERATOR
    • LT_OPERATOR

      protected static final clojure.lang.Symbol LT_OPERATOR
    • LTE_OPERATOR

      protected static final clojure.lang.Symbol LTE_OPERATOR
    • IS_NULL_OPERATOR

      protected static final clojure.lang.Symbol IS_NULL_OPERATOR
    • NOT_NULL_OPERATOR

      protected static final clojure.lang.Symbol NOT_NULL_OPERATOR
    • REGEX_OPERATOR

      protected static final clojure.lang.Symbol REGEX_OPERATOR
    • IN_OPERATOR

      protected static final clojure.lang.Symbol IN_OPERATOR
    • SET_OPERATOR

      public static final clojure.lang.Symbol SET_OPERATOR
    • PCO_TO_SYMBOL

      protected static final Map<PropertyComparisonOperator,clojure.lang.Symbol> PCO_TO_SYMBOL
  • Method Details

    • buildPropertyConditions

      public static List<clojure.lang.IPersistentCollection> buildPropertyConditions(SearchProperties searchProperties, String namespace, boolean orNested, Set<String> typeNames, XTDBOMRSRepositoryConnector xtdbConnector, boolean luceneEnabled, boolean luceneRegexes)
      Retrieve a set of translated XTDB conditions appropriate to the provided Egeria conditions.
      Parameters:
      searchProperties - to translate
      namespace - by which to qualify properties
      orNested - true iff searchProperties is a set of conditions nested inside an OR (match criteria = ANY)
      typeNames - of all of the types we are including in the search
      xtdbConnector - connectivity to the repository
      luceneEnabled - indicates whether Lucene search index is configured (true) or not (false)
      luceneRegexes - indicates whether unquoted regexes should be treated as Lucene compatible (true) or not (false)
      Returns:
      List<IPersistentCollection>