Package io.substrait.expression
Class ImmutableExpression.MultiOrListRecord
java.lang.Object
io.substrait.expression.Expression.MultiOrListRecord
io.substrait.expression.ImmutableExpression.MultiOrListRecord
- Enclosing class:
- ImmutableExpression
public static final class ImmutableExpression.MultiOrListRecord
extends Expression.MultiOrListRecord
Immutable implementation of
Expression.MultiOrListRecord.
Use the builder to create immutable instances:
ImmutableExpression.MultiOrListRecord.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forMultiOrListRecord.copyOf(Expression.MultiOrListRecord instance) Creates an immutable copy of aExpression.MultiOrListRecordvalue.booleanThis instance is equal to all instances ofMultiOrListRecordthat have equal attribute values.inthashCode()Computes a hash code from attributes:values.toString()Prints the immutable valueMultiOrListRecordwith attribute values.values()withValues(Expression... elements) Copy the current immutable object with elements that replace the content ofvalues.withValues(Iterable<? extends Expression> elements) Copy the current immutable object with elements that replace the content ofvalues.
-
Method Details
-
values
- Specified by:
valuesin classExpression.MultiOrListRecord- Returns:
- The value of the
valuesattribute
-
withValues
Copy the current immutable object with elements that replace the content ofvalues.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withValues
public final ImmutableExpression.MultiOrListRecord withValues(Iterable<? extends Expression> elements) Copy the current immutable object with elements that replace the content ofvalues. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of values elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofMultiOrListRecordthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:values. -
toString
Prints the immutable valueMultiOrListRecordwith attribute values. -
copyOf
Creates an immutable copy of aExpression.MultiOrListRecordvalue. 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 MultiOrListRecord instance
-
builder
Creates a builder forMultiOrListRecord.ImmutableExpression.MultiOrListRecord.builder() .addValues|addAllValues(io.substrait.expression.Expression) //valueselements .build();- Returns:
- A new MultiOrListRecord builder
-