Package io.substrait.expression
Class ImmutableExpression.ScalarSubquery.Builder
java.lang.Object
io.substrait.expression.ImmutableExpression.ScalarSubquery.Builder
- Enclosing class:
- ImmutableExpression.ScalarSubquery
Builds instances of type
ScalarSubquery.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newScalarSubquery.from(Expression instance) Fill a builder with attribute values from the providedio.substrait.expression.Expressioninstance.from(Expression.ScalarSubquery instance) Fill a builder with attribute values from the providedio.substrait.expression.Expression.ScalarSubqueryinstance.from(Expression.Subquery instance) Fill a builder with attribute values from the providedio.substrait.expression.Expression.Subqueryinstance.Initializes the value for theinputattribute.Initializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.substrait.expression.Expression.ScalarSubqueryinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.substrait.expression.Expressioninstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.substrait.expression.Expression.Subqueryinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
type
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
input
Initializes the value for theinputattribute.- Parameters:
input- The value for input- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newScalarSubquery.- Returns:
- An immutable instance of ScalarSubquery
- Throws:
IllegalStateException- if any required attributes are missing
-