Package io.substrait.relation
Class ImmutableExpand.ConsistentField
java.lang.Object
io.substrait.relation.Expand.ConsistentField
io.substrait.relation.ImmutableExpand.ConsistentField
- All Implemented Interfaces:
Expand.ExpandField
- Enclosing class:
- ImmutableExpand
Immutable implementation of
Expand.ConsistentField.
Use the builder to create immutable instances:
ImmutableExpand.ConsistentField.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConsistentField.copyOf(Expand.ConsistentField instance) Creates an immutable copy of aExpand.ConsistentFieldvalue.booleanThis instance is equal to all instances ofConsistentFieldthat have equal attribute values.Returns the expression that defines the field value.inthashCode()Computes a hash code from attributes:expression.toString()Prints the immutable valueConsistentFieldwith attribute values.withExpression(Expression value) Copy the current immutable object by setting a value for theexpressionattribute.Methods inherited from class io.substrait.relation.Expand.ConsistentField
getType
-
Method Details
-
getExpression
Returns the expression that defines the field value.- Specified by:
getExpressionin classExpand.ConsistentField- Returns:
- the defining expression
-
withExpression
Copy the current immutable object by setting a value for theexpressionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for expression- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofConsistentFieldthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:expression. -
toString
Prints the immutable valueConsistentFieldwith attribute values. -
copyOf
Creates an immutable copy of aExpand.ConsistentFieldvalue. 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 ConsistentField instance
-
builder
Creates a builder forConsistentField.ImmutableExpand.ConsistentField.builder() .expression(io.substrait.expression.Expression) // requiredexpression.build();- Returns:
- A new ConsistentField builder
-