Package io.substrait.relation.physical
Class ImmutableSingleBucketExchange.Builder
java.lang.Object
io.substrait.relation.physical.ImmutableSingleBucketExchange.Builder
- Enclosing class:
- ImmutableSingleBucketExchange
Builds instances of type
ImmutableSingleBucketExchange.
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 TypeMethodDescriptionaddAllTargets(Iterable<? extends AbstractExchangeRel.ExchangeTarget> elements) Adds elements totargetslist.Adds one element totargetslist.addTargets(AbstractExchangeRel.ExchangeTarget... elements) Adds elements totargetslist.build()Builds a newImmutableSingleBucketExchange.commonExtension(AdvancedExtension commonExtension) Initializes the optional valuecommonExtensionto commonExtension.commonExtension(Optional<? extends AdvancedExtension> commonExtension) Initializes the optional valuecommonExtensionto commonExtension.expression(Expression expression) Initializes the value for theexpressionattribute.extension(AdvancedExtension extension) Initializes the optional valueextensionto extension.extension(Optional<? extends AdvancedExtension> extension) Initializes the optional valueextensionto extension.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.from(AbstractExchangeRel instance) Fill a builder with attribute values from the providedio.substrait.relation.physical.AbstractExchangeRelinstance.from(SingleBucketExchange instance) Fill a builder with attribute values from the providedio.substrait.relation.physical.SingleBucketExchangeinstance.Fill a builder with attribute values from the providedio.substrait.relation.Relinstance.from(SingleInputRel instance) Fill a builder with attribute values from the providedio.substrait.relation.SingleInputRelinstance.Initializes the optional valuehintto hint.Initializes the optional valuehintto hint.Initializes the value for theinputattribute.partitionCount(Integer partitionCount) Initializes the value for thepartitionCountattribute.Initializes the optional valueremapto remap.Initializes the optional valueremapto remap.targets(Iterable<? extends AbstractExchangeRel.ExchangeTarget> elements) Sets or replaces all elements fortargetslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.substrait.relation.physical.SingleBucketExchangeinstance.- 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.physical.AbstractExchangeRelinstance.- 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.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.SingleInputRelinstance.- 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
public final ImmutableSingleBucketExchange.Builder extension(Optional<? extends AdvancedExtension> 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
public final ImmutableSingleBucketExchange.Builder commonExtension(AdvancedExtension commonExtension) Initializes the optional valuecommonExtensionto commonExtension.- Parameters:
commonExtension- The value for commonExtension- Returns:
thisbuilder for chained invocation
-
commonExtension
public final ImmutableSingleBucketExchange.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
-
input
Initializes the value for theinputattribute.- Parameters:
input- The value for input- Returns:
thisbuilder for use in a chained invocation
-
partitionCount
Initializes the value for thepartitionCountattribute.- Parameters:
partitionCount- The value for partitionCount- Returns:
thisbuilder for use in a chained invocation
-
addTargets
public final ImmutableSingleBucketExchange.Builder addTargets(AbstractExchangeRel.ExchangeTarget element) Adds one element totargetslist.- Parameters:
element- A targets element- Returns:
thisbuilder for use in a chained invocation
-
addTargets
public final ImmutableSingleBucketExchange.Builder addTargets(AbstractExchangeRel.ExchangeTarget... elements) Adds elements totargetslist.- Parameters:
elements- An array of targets elements- Returns:
thisbuilder for use in a chained invocation
-
targets
public final ImmutableSingleBucketExchange.Builder targets(Iterable<? extends AbstractExchangeRel.ExchangeTarget> elements) Sets or replaces all elements fortargetslist.- Parameters:
elements- An iterable of targets elements- Returns:
thisbuilder for use in a chained invocation
-
addAllTargets
public final ImmutableSingleBucketExchange.Builder addAllTargets(Iterable<? extends AbstractExchangeRel.ExchangeTarget> elements) Adds elements totargetslist.- Parameters:
elements- An iterable of targets elements- Returns:
thisbuilder for use in a chained invocation
-
expression
Initializes the value for theexpressionattribute.- Parameters:
expression- The value for expression- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableSingleBucketExchange.- Returns:
- An immutable instance of SingleBucketExchange
- Throws:
IllegalStateException- if any required attributes are missing
-