public class StartsWith extends TextBinaryPredicate
ignoreCase
expression1, expression2
Constructor and Description |
---|
StartsWith() |
StartsWith(TextExpression expression1,
TextExpression expression2) |
StartsWith(TextExpression expression1,
TextExpression expression2,
boolean ignoreCase) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluateInternal(String value1,
String value2) |
Set<String> |
getConstrainableFields() |
<V extends Comparable<V>> |
getConstraints(Class<V> constraintClass,
DataStatisticsStore statsStore,
DataTypeAdapter<?> adapter,
AdapterToIndexMapping indexMapping,
Index index,
Set<String> indexedFields)
Generate constraints for the given index based on this filter.
|
String |
toString() |
evaluate, evaluate, fromBinary, isIgnoreCase, prepare, toBinary
addReferencedFields, getExpression1, getExpression2, removePredicatesForFields
public StartsWith()
public StartsWith(TextExpression expression1, TextExpression expression2)
public StartsWith(TextExpression expression1, TextExpression expression2, boolean ignoreCase)
public boolean evaluateInternal(String value1, String value2)
evaluateInternal
in class TextBinaryPredicate
public Set<String> getConstrainableFields()
public <V extends Comparable<V>> FilterConstraints<V> getConstraints(Class<V> constraintClass, DataStatisticsStore statsStore, DataTypeAdapter<?> adapter, AdapterToIndexMapping indexMapping, Index index, Set<String> indexedFields)
Filter
constraintClass
- the class that the index expects for constraintsstatsStore
- the data statistics storeadapter
- the data type adapterindexMapping
- the adapter to index mappingindex
- the indexindexedFields
- a set of all adapter fields used by the index mappingCopyright © 2013–2022. All rights reserved.