Package io.substrait.extension
Class ImmutableSimpleExtension.ValueArgument
java.lang.Object
io.substrait.extension.SimpleExtension.ValueArgument
io.substrait.extension.ImmutableSimpleExtension.ValueArgument
- All Implemented Interfaces:
SimpleExtension.Argument
- Enclosing class:
- ImmutableSimpleExtension
public static final class ImmutableSimpleExtension.ValueArgument
extends SimpleExtension.ValueArgument
Immutable implementation of
SimpleExtension.ValueArgument.
Use the builder to create immutable instances:
ImmutableSimpleExtension.ValueArgument.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forValueArgument.@Nullable Booleanconstant()copyOf(SimpleExtension.ValueArgument instance) Creates an immutable copy of aSimpleExtension.ValueArgumentvalue.@Nullable StringbooleanThis instance is equal to all instances ofValueArgumentthat have equal attribute values.inthashCode()Computes a hash code from attributes:name,description,value,constant.@Nullable Stringname()toString()Prints the immutable valueValueArgumentwith attribute values.value()withConstant(@Nullable Boolean value) Copy the current immutable object by setting a value for theconstantattribute.withDescription(@Nullable String value) Copy the current immutable object by setting a value for thedescriptionattribute.Copy the current immutable object by setting a value for thenameattribute.withValue(ParameterizedType value) Copy the current immutable object by setting a value for thevalueattribute.Methods inherited from class io.substrait.extension.SimpleExtension.ValueArgument
required, toTypeString
-
Method Details
-
name
- Returns:
- The value of the
nameattribute
-
description
- Returns:
- The value of the
descriptionattribute
-
value
- Specified by:
valuein classSimpleExtension.ValueArgument- Returns:
- The value of the
valueattribute
-
constant
- Specified by:
constantin classSimpleExtension.ValueArgument- Returns:
- The value of the
constantattribute
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy or the
thisobject
-
withDescription
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy or the
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy or the
thisobject
-
withConstant
Copy the current immutable object by setting a value for theconstantattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for constant (can benull)- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofValueArgumentthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,description,value,constant. -
toString
Prints the immutable valueValueArgumentwith attribute values. -
copyOf
Creates an immutable copy of aSimpleExtension.ValueArgumentvalue. 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 ValueArgument instance
-
builder
Creates a builder forValueArgument.ImmutableSimpleExtension.ValueArgument.builder() .name(String | null) // nullablename.description(String | null) // nullabledescription.value(io.substrait.function.ParameterizedType) // requiredvalue.constant(Boolean | null) // nullableconstant.build();- Returns:
- A new ValueArgument builder
-