Package io.substrait.relation
Class ImmutableNamedDdl.Builder
java.lang.Object
io.substrait.relation.ImmutableNamedDdl.Builder
- Enclosing class:
- ImmutableNamedDdl
Builds instances of type
ImmutableNamedDdl.
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 TypeMethodDescriptionaddAllNames(Iterable<String> elements) Adds elements tonameslist.Adds one element tonameslist.Adds elements tonameslist.build()Builds a newImmutableNamedDdl.commonExtension(AdvancedExtension commonExtension) Initializes the optional valuecommonExtensionto commonExtension.commonExtension(Optional<? extends AdvancedExtension> commonExtension) Initializes the optional valuecommonExtensionto commonExtension.extension(AdvancedExtension extension) Initializes the optional valueextensionto extension.extension(Optional<? extends AdvancedExtension> extension) Initializes the optional valueextensionto extension.from(AbstractDdlRel instance) Fill a builder with attribute values from the providedio.substrait.relation.AbstractDdlRelinstance.from(AbstractRel instance) Fill a builder with attribute values from the providedio.substrait.relation.AbstractRelinstance.from(HasExtension instance) Fill a builder with attribute values from the providedio.substrait.relation.HasExtensioninstance.Fill a builder with attribute values from the providedio.substrait.relation.NamedDdlinstance.Fill a builder with attribute values from the providedio.substrait.relation.Relinstance.from(ZeroInputRel instance) Fill a builder with attribute values from the providedio.substrait.relation.ZeroInputRelinstance.Initializes the optional valuehintto hint.Initializes the optional valuehintto hint.Sets or replaces all elements fornameslist.object(AbstractDdlRel.DdlObject object) Initializes the value for theobjectattribute.operation(AbstractDdlRel.DdlOp operation) Initializes the value for theoperationattribute.Initializes the optional valueremapto remap.Initializes the optional valueremapto remap.tableDefaults(Expression.StructLiteral tableDefaults) Initializes the value for thetableDefaultsattribute.tableSchema(NamedStruct tableSchema) Initializes the value for thetableSchemaattribute.viewDefinition(Rel viewDefinition) Initializes the optional valueviewDefinitionto viewDefinition.viewDefinition(Optional<? extends Rel> viewDefinition) Initializes the optional valueviewDefinitionto viewDefinition.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.substrait.relation.ZeroInputRelinstance.- 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.relation.HasExtensioninstance.- 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.relation.Relinstance.- 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.relation.NamedDdlinstance.- 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.relation.AbstractRelinstance.- 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.relation.AbstractDdlRelinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
extension
Initializes the optional valueextensionto extension.- Parameters:
extension- The value for extension- Returns:
thisbuilder for chained invocation
-
extension
Initializes the optional valueextensionto extension.- Parameters:
extension- The value for extension- Returns:
thisbuilder for use in a chained invocation
-
remap
Initializes the optional valueremapto remap.- Parameters:
remap- The value for remap- Returns:
thisbuilder for chained invocation
-
remap
Initializes the optional valueremapto remap.- Parameters:
remap- The value for remap- Returns:
thisbuilder for use in a chained invocation
-
commonExtension
Initializes the optional valuecommonExtensionto commonExtension.- Parameters:
commonExtension- The value for commonExtension- Returns:
thisbuilder for chained invocation
-
commonExtension
public final ImmutableNamedDdl.Builder commonExtension(Optional<? extends AdvancedExtension> commonExtension) Initializes the optional valuecommonExtensionto commonExtension.- Parameters:
commonExtension- The value for commonExtension- Returns:
thisbuilder for use in a chained invocation
-
hint
Initializes the optional valuehintto hint.- Parameters:
hint- The value for hint- Returns:
thisbuilder for chained invocation
-
hint
Initializes the optional valuehintto hint.- Parameters:
hint- The value for hint- Returns:
thisbuilder for use in a chained invocation
-
tableSchema
Initializes the value for thetableSchemaattribute.- Parameters:
tableSchema- The value for tableSchema- Returns:
thisbuilder for use in a chained invocation
-
tableDefaults
Initializes the value for thetableDefaultsattribute.- Parameters:
tableDefaults- The value for tableDefaults- Returns:
thisbuilder for use in a chained invocation
-
object
Initializes the value for theobjectattribute.- Parameters:
object- The value for object- Returns:
thisbuilder for use in a chained invocation
-
operation
Initializes the value for theoperationattribute.- Parameters:
operation- The value for operation- Returns:
thisbuilder for use in a chained invocation
-
viewDefinition
Initializes the optional valueviewDefinitionto viewDefinition.- Parameters:
viewDefinition- The value for viewDefinition- Returns:
thisbuilder for chained invocation
-
viewDefinition
Initializes the optional valueviewDefinitionto viewDefinition.- Parameters:
viewDefinition- The value for viewDefinition- Returns:
thisbuilder for use in a chained invocation
-
addNames
Adds one element tonameslist.- Parameters:
element- A names element- Returns:
thisbuilder for use in a chained invocation
-
addNames
Adds elements tonameslist.- Parameters:
elements- An array of names elements- Returns:
thisbuilder for use in a chained invocation
-
names
Sets or replaces all elements fornameslist.- Parameters:
elements- An iterable of names elements- Returns:
thisbuilder for use in a chained invocation
-
addAllNames
Adds elements tonameslist.- Parameters:
elements- An iterable of names elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableNamedDdl.- Returns:
- An immutable instance of NamedDdl
- Throws:
IllegalStateException- if any required attributes are missing
-