Package io.substrait.expression
Class ImmutableExpression.SortField.Builder
java.lang.Object
io.substrait.expression.ImmutableExpression.SortField.Builder
- Enclosing class:
- ImmutableExpression.SortField
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newSortField.direction(Expression.SortDirection direction) Initializes the value for thedirectionattribute.expr(Expression expr) Initializes the value for theexprattribute.from(Expression.SortField instance) Fill a builder with attribute values from the providedSortFieldinstance.
-
Method Details
-
from
Fill a builder with attribute values from the providedSortFieldinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
expr
Initializes the value for theexprattribute.- Parameters:
expr- The value for expr- Returns:
thisbuilder for use in a chained invocation
-
direction
Initializes the value for thedirectionattribute.- Parameters:
direction- The value for direction- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newSortField.- Returns:
- An immutable instance of SortField
- Throws:
IllegalStateException- if any required attributes are missing
-