Package io.substrait.extension
Class ImmutableSimpleExtension.ValueArgument.Builder
java.lang.Object
io.substrait.extension.ImmutableSimpleExtension.ValueArgument.Builder
- Enclosing class:
- ImmutableSimpleExtension.ValueArgument
Builds instances of type
ValueArgument.
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 newValueArgument.Initializes the value for theconstantattribute.description(@Nullable String description) Initializes the value for thedescriptionattribute.from(SimpleExtension.Argument instance) Fill a builder with attribute values from the providedio.substrait.extension.SimpleExtension.Argumentinstance.from(SimpleExtension.ValueArgument instance) Fill a builder with attribute values from the providedio.substrait.extension.SimpleExtension.ValueArgumentinstance.Initializes the value for thenameattribute.value(ParameterizedType value) Initializes the value for thevalueattribute.
-
Method Details
-
from
public final ImmutableSimpleExtension.ValueArgument.Builder from(SimpleExtension.ValueArgument instance) Fill a builder with attribute values from the providedio.substrait.extension.SimpleExtension.ValueArgumentinstance.- 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.extension.SimpleExtension.Argumentinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name (can benull)- Returns:
thisbuilder for use in a chained invocation
-
description
public final ImmutableSimpleExtension.ValueArgument.Builder description(@Nullable String description) Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description (can benull)- Returns:
thisbuilder for use in a chained invocation
-
value
Initializes the value for thevalueattribute.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
constant
Initializes the value for theconstantattribute.- Parameters:
constant- The value for constant (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newValueArgument.- Returns:
- An immutable instance of ValueArgument
- Throws:
IllegalStateException- if any required attributes are missing
-