Package org.apache.iceberg.expressions
Class And
- java.lang.Object
-
- org.apache.iceberg.expressions.And
-
- All Implemented Interfaces:
java.io.Serializable,Expression
public class And extends java.lang.Object implements Expression
- 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 booleanisEquivalentTo(Expression expr)Returns whether this expression will accept the same values as another.Expressionleft()Expressionnegate()Returns the negation of this expression, equivalent to not(this).Expression.Operationop()Returns the operation for an expression node.Expressionright()java.lang.StringtoString()
-
-
-
Method Detail
-
left
public Expression left()
-
right
public Expression right()
-
op
public Expression.Operation op()
Description copied from interface:ExpressionReturns the operation for an expression node.- Specified by:
opin interfaceExpression
-
isEquivalentTo
public boolean isEquivalentTo(Expression expr)
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:
expr- another expression- Returns:
- true if the expressions are equivalent
-
negate
public Expression negate()
Description copied from interface:ExpressionReturns the negation of this expression, equivalent to not(this).- Specified by:
negatein interfaceExpression
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-