Package io.substrait.extension
Class ImmutableSimpleExtension.TypeAnchor.Builder
java.lang.Object
io.substrait.extension.ImmutableSimpleExtension.TypeAnchor.Builder
- Enclosing class:
- ImmutableSimpleExtension.TypeAnchor
Builds instances of type
TypeAnchor.
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 newTypeAnchor.from(SimpleExtension.Anchor instance) Fill a builder with attribute values from the providedio.substrait.extension.SimpleExtension.Anchorinstance.from(SimpleExtension.TypeAnchor instance) Fill a builder with attribute values from the providedio.substrait.extension.SimpleExtension.TypeAnchorinstance.Initializes the value for thekeyattribute.Initializes the value for theurnattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.substrait.extension.SimpleExtension.TypeAnchorinstance.- 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.Anchorinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
urn
Initializes the value for theurnattribute.- Parameters:
urn- The value for urn- Returns:
thisbuilder for use in a chained invocation
-
key
Initializes the value for thekeyattribute.- Parameters:
key- The value for key- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newTypeAnchor.- Returns:
- An immutable instance of TypeAnchor
- Throws:
IllegalStateException- if any required attributes are missing
-