Package io.substrait.hint
Class ImmutableLoadedComputation
java.lang.Object
io.substrait.hint.Hint.LoadedComputation
io.substrait.hint.ImmutableLoadedComputation
Immutable implementation of
Hint.LoadedComputation.
Use the builder to create immutable instances:
ImmutableLoadedComputation.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableLoadedComputation. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableLoadedComputation.intstatic ImmutableLoadedComputationcopyOf(Hint.LoadedComputation instance) Creates an immutable copy of aHint.LoadedComputationvalue.booleanThis instance is equal to all instances ofImmutableLoadedComputationthat have equal attribute values.inthashCode()Computes a hash code from attributes:computationId,computationType.toString()Prints the immutable valueLoadedComputationwith attribute values.withComputationId(int value) Copy the current immutable object by setting a value for thecomputationIdattribute.Copy the current immutable object by setting a value for thecomputationTypeattribute.
-
Method Details
-
computationId
public int computationId()- Specified by:
computationIdin classHint.LoadedComputation- Returns:
- The value of the
computationIdattribute
-
computationType
- Specified by:
computationTypein classHint.LoadedComputation- Returns:
- The value of the
computationTypeattribute
-
withComputationId
Copy the current immutable object by setting a value for thecomputationIdattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for computationId- Returns:
- A modified copy or the
thisobject
-
withComputationType
Copy the current immutable object by setting a value for thecomputationTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for computationType- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableLoadedComputationthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:computationId,computationType. -
toString
Prints the immutable valueLoadedComputationwith attribute values. -
copyOf
Creates an immutable copy of aHint.LoadedComputationvalue. 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 LoadedComputation instance
-
builder
Creates a builder forImmutableLoadedComputation.ImmutableLoadedComputation.builder() .computationId(int) // requiredcomputationId.computationType(io.substrait.hint.Hint.ComputationType) // requiredcomputationType.build();- Returns:
- A new ImmutableLoadedComputation builder
-