Package io.deephaven.api.filter
Class FilterPattern
java.lang.Object
io.deephaven.api.filter.FilterBase
io.deephaven.api.filter.FilterPattern
- All Implemented Interfaces:
ConcurrencyControl<Filter>,Expression,Filter
A filter based on a regular-expression
Pattern, compatible with any column types that are compatible with
CharSequence.
In the MATCHES case, the logic is equivalent to
value != null && (invertPattern() ^ pattern().matcher(value).matches()).
In the FIND case, the logic is equivalent to
value != null && (invertPattern() ^ pattern().matcher(value).find()).
This filter will never match null values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enumThe pattern modeNested classes/interfaces inherited from interface io.deephaven.api.filter.Filter
Filter.Visitor<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterPattern.Builderbuilder()final booleanabstract Expressionfinal inthashCode()final FilterNot<FilterPattern>invert()The logical inversion ofthis.booleanabstract FilterPattern.Modemode()static FilterPatternof(Expression expression, Pattern pattern, FilterPattern.Mode mode, boolean invertPattern) abstract Patternpattern()final StringtoString()final <T> Twalk(Filter.Visitor<T> visitor) Methods inherited from class io.deephaven.api.filter.FilterBase
walkMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.deephaven.api.filter.Filter
withDeclaredBarriers, withRespectedBarriers, withSerial
-
Constructor Details
-
FilterPattern
public FilterPattern()
-
-
Method Details
-
builder
-
of
public static FilterPattern of(Expression expression, Pattern pattern, FilterPattern.Mode mode, boolean invertPattern) -
expression
-
pattern
-
mode
-
invertPattern
@Default public boolean invertPattern() -
invert
Description copied from interface:FilterThe logical inversion ofthis. While logically equivalent toFilter.not(this), implementations of this method will return more specifically typed inversions where applicable.- Returns:
- the inverse filter
- See Also:
-
walk
-
toString
-
equals
-
hashCode
public final int hashCode()
-