Class ConditionBuilder
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.crux.model.search.ConditionBuilder
-
public class ConditionBuilder extends Object
Methods for building up complex conditions used by the queries.
-
-
Field Summary
Fields Modifier and Type Field Description static clojure.lang.SymbolAND_OPERATORprotected static clojure.lang.SymbolEQ_OPERATORprotected static clojure.lang.SymbolGT_OPERATORprotected static clojure.lang.SymbolGTE_OPERATORprotected static clojure.lang.SymbolIN_OPERATORprotected static clojure.lang.SymbolIS_NULL_OPERATORprotected static clojure.lang.SymbolLT_OPERATORprotected static clojure.lang.SymbolLTE_OPERATORprotected static clojure.lang.SymbolNEQ_OPERATORprotected static clojure.lang.SymbolNOT_NULL_OPERATORstatic clojure.lang.SymbolNOT_OPERATORstatic clojure.lang.SymbolOR_JOINstatic clojure.lang.SymbolOR_OPERATORprotected static Map<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.PropertyComparisonOperator,clojure.lang.Symbol>PCO_TO_SYMBOLprotected static clojure.lang.SymbolREGEX_OPERATORstatic clojure.lang.SymbolSET_OPERATOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<clojure.lang.IPersistentCollection>buildPropertyConditions(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties searchProperties, String namespace, boolean orNested, Set<String> typeNames, CruxOMRSRepositoryConnector cruxConnector, boolean luceneEnabled, boolean luceneRegexes)Retrieve a set of translated Crux conditions appropriate to the provided Egeria conditions.
-
-
-
Field Detail
-
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
-
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<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.PropertyComparisonOperator,clojure.lang.Symbol> PCO_TO_SYMBOL
-
-
Method Detail
-
buildPropertyConditions
public static List<clojure.lang.IPersistentCollection> buildPropertyConditions(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties searchProperties, String namespace, boolean orNested, Set<String> typeNames, CruxOMRSRepositoryConnector cruxConnector, boolean luceneEnabled, boolean luceneRegexes)
Retrieve a set of translated Crux conditions appropriate to the provided Egeria conditions.- Parameters:
searchProperties- to translatenamespace- by which to qualify propertiesorNested- 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 searchcruxConnector- connectivity to the repositoryluceneEnabled- 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>
-
-