Package org.apache.iceberg.expressions
Class BoundLiteralPredicate<T>
java.lang.Object
org.apache.iceberg.expressions.Predicate<T,BoundTerm<T>>
org.apache.iceberg.expressions.BoundPredicate<T>
org.apache.iceberg.expressions.BoundLiteralPredicate<T>
- All Implemented Interfaces:
Serializable
,Bound<Boolean>
,Expression
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.expressions.Expression
Expression.Operation
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEquivalentTo
(Expression expr) Returns whether this expression will accept the same values as another.boolean
literal()
negate()
Returns the negation of this expression, equivalent to not(this).boolean
toString()
Methods inherited from class org.apache.iceberg.expressions.BoundPredicate
asSetPredicate, asUnaryPredicate, eval, isSetPredicate, isUnaryPredicate, ref, test
-
Method Details
-
negate
Description copied from interface:Expression
Returns the negation of this expression, equivalent to not(this). -
literal
-
isLiteralPredicate
public boolean isLiteralPredicate()- Overrides:
isLiteralPredicate
in classBoundPredicate<T>
-
asLiteralPredicate
- Overrides:
asLiteralPredicate
in classBoundPredicate<T>
-
test
- Specified by:
test
in classBoundPredicate<T>
-
isEquivalentTo
Description copied from interface:Expression
Returns whether this expression will accept the same values as another.If this returns true, the expressions are guaranteed to return the same evaluation for the same input. However, if this returns false the expressions may return the same evaluation for the same input. That is, expressions may be equivalent even if this returns false.
For best results, rewrite not and bind expressions before calling this method.
- Parameters:
expr
- another expression- Returns:
- true if the expressions are equivalent
-
toString
-