Class TextConditionBuilder
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.xtdb.model.search.TextConditionBuilder
-
public class TextConditionBuilder extends Object
Methods for building up complex conditions that search text (strings).
-
-
Field Summary
Fields Modifier and Type Field Description static clojure.lang.SymbolATTRIBUTEprotected static clojure.lang.SymbolCONTAINSstatic clojure.lang.SymbolELIDEprotected static clojure.lang.SymbolENDS_WITHprotected static clojure.lang.SymbolSTARTS_WITHprotected static clojure.lang.SymbolSTR_OPERATORprotected static clojure.lang.SymbolTEXT_SEARCH_CIprotected static clojure.lang.SymbolTEXT_SEARCH_CSstatic clojure.lang.SymbolVALUEprotected static clojure.lang.SymbolWILDCARD_TEXT_SEARCH_CIprotected static clojure.lang.SymbolWILDCARD_TEXT_SEARCH_CS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<clojure.lang.IPersistentCollection>buildWildcardLuceneCondition(String regexCriteria, XtdbOMRSRepositoryConnector xtdbConnector, Set<String> typesToInclude, String namespace, boolean luceneRegexes)Adds conditions to the search to find any text field that matches the supplied criteria (leveraging a separate Lucene index).static List<clojure.lang.IPersistentCollection>buildWildcardTextCondition(String regexCriteria, XtdbOMRSRepositoryConnector xtdbConnector, Set<String> typesToInclude, String namespace, boolean luceneEnabled, boolean luceneRegexes)Add conditions to the search to find any text field that matches the supplied criteria (without a separate Lucene index).
-
-
-
Field Detail
-
ELIDE
public static final clojure.lang.Symbol ELIDE
-
VALUE
public static final clojure.lang.Symbol VALUE
-
ATTRIBUTE
public static final clojure.lang.Symbol ATTRIBUTE
-
WILDCARD_TEXT_SEARCH_CI
protected static final clojure.lang.Symbol WILDCARD_TEXT_SEARCH_CI
-
WILDCARD_TEXT_SEARCH_CS
protected static final clojure.lang.Symbol WILDCARD_TEXT_SEARCH_CS
-
TEXT_SEARCH_CI
protected static final clojure.lang.Symbol TEXT_SEARCH_CI
-
TEXT_SEARCH_CS
protected static final clojure.lang.Symbol TEXT_SEARCH_CS
-
STARTS_WITH
protected static final clojure.lang.Symbol STARTS_WITH
-
CONTAINS
protected static final clojure.lang.Symbol CONTAINS
-
ENDS_WITH
protected static final clojure.lang.Symbol ENDS_WITH
-
STR_OPERATOR
protected static final clojure.lang.Symbol STR_OPERATOR
-
-
Method Detail
-
buildWildcardTextCondition
public static List<clojure.lang.IPersistentCollection> buildWildcardTextCondition(String regexCriteria, XtdbOMRSRepositoryConnector xtdbConnector, Set<String> typesToInclude, String namespace, boolean luceneEnabled, boolean luceneRegexes)
Add conditions to the search to find any text field that matches the supplied criteria (without a separate Lucene index).- Parameters:
regexCriteria- defining what should be matchedxtdbConnector- connectivity to the repositorytypesToInclude- defining which type definitions should be included in the search (to limit the properties)namespace- by which to qualify the propertiesluceneEnabled- 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>of condition(s) for the text matching
-
buildWildcardLuceneCondition
public static List<clojure.lang.IPersistentCollection> buildWildcardLuceneCondition(String regexCriteria, XtdbOMRSRepositoryConnector xtdbConnector, Set<String> typesToInclude, String namespace, boolean luceneRegexes)
Adds conditions to the search to find any text field that matches the supplied criteria (leveraging a separate Lucene index).- Parameters:
regexCriteria- defining what should be matchedxtdbConnector- connectivity to the repositorytypesToInclude- defining which type definitions should be included in the search (to limit the properties)namespace- by which to qualify the propertiesluceneRegexes- indicates whether unquoted regexes should be treated as Lucene compatible (true) or not (false)- Returns:
List<IPersistentCollection>of condition(s) for the text matching
-
-