Package org.apache.iceberg.expressions
Class BoundUnaryPredicate<T>
- java.lang.Object
-
- org.apache.iceberg.expressions.Predicate<T,BoundTerm<T>>
-
- org.apache.iceberg.expressions.BoundPredicate<T>
-
- org.apache.iceberg.expressions.BoundUnaryPredicate<T>
-
- All Implemented Interfaces:
java.io.Serializable
,Bound<java.lang.Boolean>
,Expression
public class BoundUnaryPredicate<T> extends BoundPredicate<T>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iceberg.expressions.Expression
Expression.Operation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundUnaryPredicate<T>
asUnaryPredicate()
boolean
isEquivalentTo(Expression other)
Returns whether this expression will accept the same values as another.boolean
isUnaryPredicate()
Expression
negate()
Returns the negation of this expression, equivalent to not(this).boolean
test(T value)
java.lang.String
toString()
-
Methods inherited from class org.apache.iceberg.expressions.BoundPredicate
asLiteralPredicate, asSetPredicate, eval, isLiteralPredicate, isSetPredicate, ref, test
-
-
-
-
Method Detail
-
negate
public Expression negate()
Description copied from interface:Expression
Returns the negation of this expression, equivalent to not(this).
-
isUnaryPredicate
public boolean isUnaryPredicate()
- Overrides:
isUnaryPredicate
in classBoundPredicate<T>
-
asUnaryPredicate
public BoundUnaryPredicate<T> asUnaryPredicate()
- Overrides:
asUnaryPredicate
in classBoundPredicate<T>
-
test
public boolean test(T value)
- Specified by:
test
in classBoundPredicate<T>
-
isEquivalentTo
public boolean isEquivalentTo(Expression other)
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:
other
- another expression- Returns:
- true if the expressions are equivalent
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-