Package org.apache.iceberg.expressions
Class True
java.lang.Object
org.apache.iceberg.expressions.True
- All Implemented Interfaces:
Serializable,Expression
An
expression that is always true.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.expressions.Expression
Expression.Operation -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEquivalentTo(Expression other) Returns whether this expression will accept the same values as another.negate()Returns the negation of this expression, equivalent to not(this).op()Returns the operation for an expression node.toString()
-
Method Details
-
op
Description copied from interface:ExpressionReturns the operation for an expression node.- Specified by:
opin interfaceExpression
-
negate
Description copied from interface:ExpressionReturns the negation of this expression, equivalent to not(this).- Specified by:
negatein interfaceExpression
-
isEquivalentTo
Description copied from interface:ExpressionReturns 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.
- Specified by:
isEquivalentToin interfaceExpression- Parameters:
other- another expression- Returns:
- true if the expressions are equivalent
-
toString
-