Package io.deephaven.api.filter
Interface Filter
- All Superinterfaces:
Expression
- All Known Subinterfaces:
LiteralFilter
- All Known Implementing Classes:
FilterAnd,FilterBase,FilterComparison,FilterIn,FilterIsNull,FilterNot,FilterOr,FilterPattern,Function,Method,RawString
Represents an evaluate-able filter.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterCreates a filter that evaluates totruewhen all of thefiltersevaluate totrue, andfalsewhen any of thefiltersevaluates tofalse.static Filterand(Collection<? extends Filter> filters) Creates a filter that evaluates totruewhen all of thefiltersevaluate totrue, andfalsewhen any of thefiltersevaluates tofalse.static Collection<Filter>extractAnds(Filter filter) Performs a non-recursive "and-extraction" againstfilter.static Collection<? extends Filter>static Collection<? extends Filter>from(Collection<String> expressions) invert()The logical inversion ofthis.static FilterComparisonisFalse(Expression expression) Creates an is-false-filter.static FilterNot<FilterIsNull>isNotNull(Expression expression) Creates an is-not-null-filter.static FilterIsNullisNull(Expression expression) Creates an is-null-filter.static FilterComparisonisTrue(Expression expression) Creates an is-true-filter.not(F filter) Creates anot-filterfromfilter.static LiteralFilterofFalse()Creates an always-false-filter.static LiteralFilterofTrue()Creates an always-true-filter.static FilterCreates a filter that evaluates totruewhen any offiltersevaluates totrue, andfalsewhen none of thefiltersevaluates totrue.static Filteror(Collection<? extends Filter> filters) Creates a filter that evaluates totruewhen any offiltersevaluates totrue, andfalsewhen none of thefiltersevaluates totrue.<T> Twalk(Filter.Visitor<T> visitor) Methods inherited from interface io.deephaven.api.expression.Expression
walk
-
Method Details
-
from
-
from
-
ofTrue
Creates an always-true-filter.Equivalent to
Literal.of(true).- Returns:
- the always-true-filter
-
ofFalse
Creates an always-false-filter.Equivalent to
Literal.of(false).- Returns:
- the always-false-filter
-
isNull
Creates an is-null-filter.- Parameters:
expression- the expression- Returns:
- the is-null-filter
-
isNotNull
Creates an is-not-null-filter.Equivalent to
not(isNull(expression)).- Parameters:
expression- the expression- Returns:
- the is-not-null-filter
-
isTrue
Creates an is-true-filter.Equivalent to
FilterComparison.eq(expression, ofTrue()).- Parameters:
expression- the expression- Returns:
- the equals-true-filter
-
isFalse
Creates an is-false-filter.Equivalent to
FilterComparison.eq(expression, ofFalse()).- Parameters:
expression- the expression- Returns:
-
not
Creates anot-filterfromfilter. Callers should typically preferinvert(), unless the "not" context needs to be preserved.- Type Parameters:
F- the type of filter- Parameters:
filter- the filter- Returns:
- the not-filter
-
or
Creates a filter that evaluates totruewhen any offiltersevaluates totrue, andfalsewhen none of thefiltersevaluates totrue. This implies thatofFalse()is returned whenfiltersis empty.- Parameters:
filters- the filters- Returns:
- the filter
-
or
Creates a filter that evaluates totruewhen any offiltersevaluates totrue, andfalsewhen none of thefiltersevaluates totrue. This implies thatofFalse()is returned whenfiltersis empty.- Parameters:
filters- the filters- Returns:
- the filter
-
and
Creates a filter that evaluates totruewhen all of thefiltersevaluate totrue, andfalsewhen any of thefiltersevaluates tofalse. This implies thatofTrue()is returned whenfiltersis empty.- Parameters:
filters- the filters- Returns:
- the filter
-
and
Creates a filter that evaluates totruewhen all of thefiltersevaluate totrue, andfalsewhen any of thefiltersevaluates tofalse. This implies thatofTrue()is returned whenfiltersis empty.- Parameters:
filters- the filters- Returns:
- the filter
-
extractAnds
Performs a non-recursive "and-extraction" againstfilter. Iffilteris aFilterAnd,FilterAnd.filters()will be returned. IffilterisofTrue(), an empty list will be returned. Otherwise, a singleton list offilterwill be returned.- Parameters:
filter- the filter- Returns:
- the and-extracted filter
-
invert
Filter invert()The 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
-