Package io.substrait.relation
Class ImmutableRemap
java.lang.Object
io.substrait.relation.Rel.Remap
io.substrait.relation.ImmutableRemap
Immutable implementation of
Rel.Remap.
Use the builder to create immutable instances:
ImmutableRemap.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableRemap.Builderbuilder()Creates a builder forImmutableRemap.static ImmutableRemapCreates an immutable copy of aRel.Remapvalue.booleanThis instance is equal to all instances ofImmutableRemapthat have equal attribute values.inthashCode()Computes a hash code from attributes:indices.indices()toString()Prints the immutable valueRemapwith attribute values.final ImmutableRemapwithIndices(int... elements) Copy the current immutable object with elements that replace the content ofindices.final ImmutableRemapwithIndices(Iterable<Integer> elements) Copy the current immutable object with elements that replace the content ofindices.
-
Method Details
-
indices
-
withIndices
Copy the current immutable object with elements that replace the content ofindices.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withIndices
Copy the current immutable object with elements that replace the content ofindices. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of indices elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableRemapthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:indices. -
toString
Prints the immutable valueRemapwith attribute values. -
copyOf
Creates an immutable copy of aRel.Remapvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable Remap instance
-
builder
Creates a builder forImmutableRemap.ImmutableRemap.builder() .addIndices|addAllIndices(int) //indiceselements .build();- Returns:
- A new ImmutableRemap builder
-