Package org.apache.iceberg.expressions
Class ExpressionVisitors.BoundExpressionVisitor<R>
- java.lang.Object
-
- org.apache.iceberg.expressions.ExpressionVisitors.ExpressionVisitor<R>
-
- org.apache.iceberg.expressions.ExpressionVisitors.BoundExpressionVisitor<R>
-
- Enclosing class:
- ExpressionVisitors
public abstract static class ExpressionVisitors.BoundExpressionVisitor<R> extends ExpressionVisitors.ExpressionVisitor<R>
-
-
Constructor Summary
Constructors Constructor Description BoundExpressionVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> R
eq(BoundReference<T> ref, Literal<T> lit)
<T> R
gt(BoundReference<T> ref, Literal<T> lit)
<T> R
gtEq(BoundReference<T> ref, Literal<T> lit)
<T> R
handleNonReference(Bound<T> term)
Handle a non-reference value in this visitor.<T> R
in(BoundReference<T> ref, java.util.Set<T> literalSet)
<T> R
isNaN(BoundReference<T> ref)
<T> R
isNull(BoundReference<T> ref)
<T> R
lt(BoundReference<T> ref, Literal<T> lit)
<T> R
ltEq(BoundReference<T> ref, Literal<T> lit)
<T> R
notEq(BoundReference<T> ref, Literal<T> lit)
<T> R
notIn(BoundReference<T> ref, java.util.Set<T> literalSet)
<T> R
notNaN(BoundReference<T> ref)
<T> R
notNull(BoundReference<T> ref)
<T> R
notStartsWith(BoundReference<T> ref, Literal<T> lit)
<T> R
predicate(BoundPredicate<T> pred)
<T> R
predicate(UnboundPredicate<T> pred)
<T> R
startsWith(BoundReference<T> ref, Literal<T> lit)
-
Methods inherited from class org.apache.iceberg.expressions.ExpressionVisitors.ExpressionVisitor
alwaysFalse, alwaysTrue, and, not, or
-
-
-
-
Method Detail
-
isNull
public <T> R isNull(BoundReference<T> ref)
-
notNull
public <T> R notNull(BoundReference<T> ref)
-
isNaN
public <T> R isNaN(BoundReference<T> ref)
-
notNaN
public <T> R notNaN(BoundReference<T> ref)
-
lt
public <T> R lt(BoundReference<T> ref, Literal<T> lit)
-
ltEq
public <T> R ltEq(BoundReference<T> ref, Literal<T> lit)
-
gt
public <T> R gt(BoundReference<T> ref, Literal<T> lit)
-
gtEq
public <T> R gtEq(BoundReference<T> ref, Literal<T> lit)
-
eq
public <T> R eq(BoundReference<T> ref, Literal<T> lit)
-
notEq
public <T> R notEq(BoundReference<T> ref, Literal<T> lit)
-
in
public <T> R in(BoundReference<T> ref, java.util.Set<T> literalSet)
-
notIn
public <T> R notIn(BoundReference<T> ref, java.util.Set<T> literalSet)
-
startsWith
public <T> R startsWith(BoundReference<T> ref, Literal<T> lit)
-
notStartsWith
public <T> R notStartsWith(BoundReference<T> ref, Literal<T> lit)
-
handleNonReference
public <T> R handleNonReference(Bound<T> term)
Handle a non-reference value in this visitor.Visitors that require
references
and notterms
can use this method to return a default value for expressions with non-references. The default implementation will throw a validation exception because the non-reference is not supported.- Type Parameters:
T
- a Java return type- Parameters:
term
- a non-reference bound expression- Returns:
- a return value for the visitor
-
predicate
public <T> R predicate(BoundPredicate<T> pred)
- Overrides:
predicate
in classExpressionVisitors.ExpressionVisitor<R>
-
predicate
public <T> R predicate(UnboundPredicate<T> pred)
- Overrides:
predicate
in classExpressionVisitors.ExpressionVisitor<R>
-
-