Package io.deephaven.api.filter
Class FilterComparison
java.lang.Object
io.deephaven.api.filter.FilterBase
io.deephaven.api.filter.FilterComparison
- All Implemented Interfaces:
Expression
,Filter
Evaluates to true based on the specific
operator
applied to the left-hand side
and
right-hand side
expressions
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
Nested classes/interfaces inherited from interface io.deephaven.api.filter.Filter
Filter.Visitor<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterComparison.Builder
builder()
static FilterComparison
eq
(Expression lhs, Expression rhs) static FilterComparison
geq
(Expression lhs, Expression rhs) static FilterComparison
gt
(Expression lhs, Expression rhs) final FilterComparison
invert()
The logically inversion ofthis
.static FilterComparison
leq
(Expression lhs, Expression rhs) abstract Expression
lhs()
The left-hand side expression.static FilterComparison
lt
(Expression lhs, Expression rhs) final FilterComparison
Transpose
the filter if theleft-hand side
is not aColumnName
and theright-hand side
is aColumnName
.static FilterComparison
neq
(Expression lhs, Expression rhs) abstract FilterComparison.Operator
operator()
The operator.abstract Expression
rhs()
The right-hand side expression.final FilterComparison
The logically equivalent transposed filter.final <T> T
walk
(Filter.Visitor<T> visitor) Methods inherited from class io.deephaven.api.filter.FilterBase
walk
-
Constructor Details
-
FilterComparison
public FilterComparison()
-
-
Method Details
-
builder
-
lt
-
leq
-
gt
-
geq
-
eq
-
neq
-
operator
The operator.- Returns:
- the operator
-
lhs
The left-hand side expression.- Returns:
- the left-hand side expression
-
rhs
The right-hand side expression.- Returns:
- the right-hand side expression
-
transpose
The logically equivalent transposed filter.Equivalent to
operator().transpose().of(rhs(), lhs())
.Note: while logically equivalent, a transposed filter condition does not equal
this
.- Returns:
- the transposed filter
-
maybeTranspose
Transpose
the filter if theleft-hand side
is not aColumnName
and theright-hand side
is aColumnName
.Useful in cases where a visitor wants to walk the sides, and prefers to have a
ColumnName
on theleft-hand side
.- Returns:
- the filter, potentially transposed
-
invert
The logically inversion ofthis
.- Returns:
- the inverted filter
- See Also:
-
walk
-