Package io.substrait.type
Class ImmutableType.ParameterDataType
java.lang.Object
io.substrait.type.Type.ParameterDataType
io.substrait.type.ImmutableType.ParameterDataType
- All Implemented Interfaces:
Type.Parameter
- Enclosing class:
- ImmutableType
Immutable implementation of
Type.ParameterDataType.
Use the builder to create immutable instances:
ImmutableType.ParameterDataType.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forParameterDataType.copyOf(Type.ParameterDataType instance) Creates an immutable copy of aType.ParameterDataTypevalue.booleanThis instance is equal to all instances ofParameterDataTypethat have equal attribute values.inthashCode()Computes a hash code from attributes:type.toString()Prints the immutable valueParameterDataTypewith attribute values.type()Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
type
- Specified by:
typein classType.ParameterDataType- Returns:
- The value of the
typeattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofParameterDataTypethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type. -
toString
Prints the immutable valueParameterDataTypewith attribute values. -
copyOf
Creates an immutable copy of aType.ParameterDataTypevalue. 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 ParameterDataType instance
-
builder
Creates a builder forParameterDataType.ImmutableType.ParameterDataType.builder() .type(io.substrait.type.Type) // requiredtype.build();- Returns:
- A new ParameterDataType builder
-