Package ddf.catalog.pubsub.predicate
Class ContextualPredicate
java.lang.Object
ddf.catalog.pubsub.predicate.ContextualPredicate
- All Implemented Interfaces:
Predicate
-
Constructor Summary
ConstructorsConstructorDescriptionContextualPredicate(String searchPhrase, boolean fuzzy, boolean caseSensitiveSearch, Collection<String> textPaths) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic booleanisContextual(String searchPhrase) booleanisFuzzy()booleanmatches(org.osgi.service.event.Event properties) static StringnormalizePhrase(String inputPhrase, boolean isFuzzy) Normalizes a search phrase for a Lucene querytoString()
-
Constructor Details
-
ContextualPredicate
public ContextualPredicate(String searchPhrase, boolean fuzzy, boolean caseSensitiveSearch, Collection<String> textPaths)
-
-
Method Details
-
isContextual
-
normalizePhrase
Normalizes a search phrase for a Lucene query- Parameters:
inputPhrase- the input phraseisFuzzy- true indicates the criteria is fuzzy- Returns:
- a search phrase aligned to Lucene syntax
-
matches
public boolean matches(org.osgi.service.event.Event properties) -
getSearchPhrase
-
isFuzzy
public boolean isFuzzy() -
isCaseSensitive
public boolean isCaseSensitive() -
hasTextPaths
public boolean hasTextPaths() -
getTextPaths
-
toString
-