Package io.substrait.relation
Class ImmutableRemap.Builder
java.lang.Object
io.substrait.relation.ImmutableRemap.Builder
- Enclosing class:
- ImmutableRemap
Builds instances of type
ImmutableRemap.
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 TypeMethodDescriptionfinal ImmutableRemap.BuilderaddAllIndices(Iterable<Integer> elements) Adds elements toindiceslist.final ImmutableRemap.BuilderaddIndices(int element) Adds one element toindiceslist.final ImmutableRemap.BuilderaddIndices(int... elements) Adds elements toindiceslist.build()Builds a newImmutableRemap.final ImmutableRemap.BuilderFill a builder with attribute values from the providedRemapinstance.final ImmutableRemap.BuilderSets or replaces all elements forindiceslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedRemapinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addIndices
Adds one element toindiceslist.- Parameters:
element- A indices element- Returns:
thisbuilder for use in a chained invocation
-
addIndices
Adds elements toindiceslist.- Parameters:
elements- An array of indices elements- Returns:
thisbuilder for use in a chained invocation
-
indices
Sets or replaces all elements forindiceslist.- Parameters:
elements- An iterable of indices elements- Returns:
thisbuilder for use in a chained invocation
-
addAllIndices
Adds elements toindiceslist.- Parameters:
elements- An iterable of indices elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableRemap.- Returns:
- An immutable instance of Remap
- Throws:
IllegalStateException- if any required attributes are missing
-