Package io.substrait.hint
Class ImmutableStats.Builder
java.lang.Object
io.substrait.hint.ImmutableStats.Builder
- Enclosing class:
- ImmutableStats
Builds instances of type
ImmutableStats.
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 newImmutableStats.final ImmutableStats.Builderextension(AdvancedExtension extension) Initializes the optional valueextensionto extension.final ImmutableStats.Builderextension(Optional<? extends AdvancedExtension> extension) Initializes the optional valueextensionto extension.final ImmutableStats.Builderfrom(Hint.Stats instance) Fill a builder with attribute values from the providedio.substrait.hint.Hint.Statsinstance.final ImmutableStats.Builderfrom(HasExtension instance) Fill a builder with attribute values from the providedio.substrait.relation.HasExtensioninstance.final ImmutableStats.BuilderrecordSize(double recordSize) Initializes the value for therecordSizeattribute.final ImmutableStats.BuilderrowCount(double rowCount) Initializes the value for therowCountattribute.
-
Method Details
-
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.hint.Hint.Statsinstance.- 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
-
rowCount
Initializes the value for therowCountattribute.- Parameters:
rowCount- The value for rowCount- Returns:
thisbuilder for use in a chained invocation
-
recordSize
Initializes the value for therecordSizeattribute.- Parameters:
recordSize- The value for recordSize- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableStats.- Returns:
- An immutable instance of Stats
- Throws:
IllegalStateException- if any required attributes are missing
-