Package io.substrait.expression
Class ImmutableExpression.InPredicate
java.lang.Object
io.substrait.expression.Expression.InPredicate
io.substrait.expression.ImmutableExpression.InPredicate
- All Implemented Interfaces:
Expression,Expression.Subquery,FunctionArg
- Enclosing class:
- ImmutableExpression
Immutable implementation of
Expression.InPredicate.
Use the builder to create immutable instances:
ImmutableExpression.InPredicate.builder().
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.substrait.expression.Expression
Expression.AggregationInvocation, Expression.AggregationPhase, Expression.BinaryLiteral, Expression.BoolLiteral, Expression.Cast, Expression.DateLiteral, Expression.DecimalLiteral, Expression.EmptyListLiteral, Expression.EmptyMapLiteral, Expression.FailureBehavior, Expression.FixedBinaryLiteral, Expression.FixedCharLiteral, Expression.FP32Literal, Expression.FP64Literal, Expression.I16Literal, Expression.I32Literal, Expression.I64Literal, Expression.I8Literal, Expression.IfClause, Expression.IfThen, Expression.InPredicate, Expression.IntervalCompoundLiteral, Expression.IntervalDayLiteral, Expression.IntervalYearLiteral, Expression.Lambda, Expression.ListLiteral, Expression.Literal, Expression.MapLiteral, Expression.MultiOrList, Expression.MultiOrListRecord, Expression.Nested, Expression.NestedList, Expression.NestedStruct, Expression.NullLiteral, Expression.PrecisionTimeLiteral, Expression.PrecisionTimestampLiteral, Expression.PrecisionTimestampTZLiteral, Expression.PredicateOp, Expression.ScalarFunctionInvocation, Expression.ScalarSubquery, Expression.SetPredicate, Expression.SingleOrList, Expression.SortDirection, Expression.SortField, Expression.StrLiteral, Expression.StructLiteral, Expression.Subquery, Expression.Switch, Expression.SwitchClause, Expression.TimeLiteral, Expression.TimestampLiteral, Expression.TimestampTZLiteral, Expression.UserDefinedAnyLiteral, Expression.UserDefinedLiteral, Expression.UserDefinedStructLiteral, Expression.UUIDLiteral, Expression.VarCharLiteral, Expression.WindowBoundsType, Expression.WindowFunctionInvocationNested classes/interfaces inherited from interface io.substrait.expression.FunctionArg
FunctionArg.FuncArgVisitor<R,C extends VisitationContext, E extends Throwable>, FunctionArg.ProtoFrom -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forInPredicate.copyOf(Expression.InPredicate instance) Creates an immutable copy of aExpression.InPredicatevalue.booleanThis instance is equal to all instances ofInPredicatethat have equal attribute values.inthashCode()Computes a hash code from attributes:haystack,needles.haystack()needles()toString()Prints the immutable valueInPredicatewith attribute values.withHaystack(Rel value) Copy the current immutable object by setting a value for thehaystackattribute.withNeedles(Expression... elements) Copy the current immutable object with elements that replace the content ofneedles.withNeedles(Iterable<? extends Expression> elements) Copy the current immutable object with elements that replace the content ofneedles.Methods inherited from class io.substrait.expression.Expression.InPredicate
accept, getTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.substrait.expression.Expression
accept
-
Method Details
-
haystack
- Specified by:
haystackin classExpression.InPredicate- Returns:
- The value of the
haystackattribute
-
needles
- Specified by:
needlesin classExpression.InPredicate- Returns:
- The value of the
needlesattribute
-
withHaystack
Copy the current immutable object by setting a value for thehaystackattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for haystack- Returns:
- A modified copy or the
thisobject
-
withNeedles
Copy the current immutable object with elements that replace the content ofneedles.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withNeedles
Copy the current immutable object with elements that replace the content ofneedles. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of needles elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofInPredicatethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:haystack,needles. -
toString
Prints the immutable valueInPredicatewith attribute values. -
copyOf
Creates an immutable copy of aExpression.InPredicatevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable InPredicate instance
-
builder
Creates a builder forInPredicate.ImmutableExpression.InPredicate.builder() .haystack(io.substrait.relation.Rel) // requiredhaystack.addNeedles|addAllNeedles(io.substrait.expression.Expression) //needleselements .build();- Returns:
- A new InPredicate builder
-