Package io.substrait.function
Class ImmutableTypeExpression.ListType
java.lang.Object
io.substrait.function.TypeExpression.BaseTypeExpression
io.substrait.function.TypeExpression.ListType
io.substrait.function.ImmutableTypeExpression.ListType
- All Implemented Interfaces:
NullableType,TypeExpression
- Enclosing class:
- ImmutableTypeExpression
Immutable implementation of
TypeExpression.ListType.
Use the builder to create immutable instances:
ImmutableTypeExpression.ListType.builder().
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.substrait.function.TypeExpression
TypeExpression.BaseTypeExpression, TypeExpression.BinaryOperation, TypeExpression.Decimal, TypeExpression.FixedBinary, TypeExpression.FixedChar, TypeExpression.Func, TypeExpression.IfOperation, TypeExpression.IntegerLiteral, TypeExpression.IntervalCompound, TypeExpression.IntervalDay, TypeExpression.ListType, TypeExpression.Map, TypeExpression.NotOperation, TypeExpression.PrecisionTime, TypeExpression.PrecisionTimestamp, TypeExpression.PrecisionTimestampTZ, TypeExpression.RequiredTypeExpressionVisitorException, TypeExpression.ReturnProgram, TypeExpression.Struct, TypeExpression.VarChar -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forListType.copyOf(TypeExpression.ListType instance) Creates an immutable copy of aTypeExpression.ListTypevalue.booleanThis instance is equal to all instances ofListTypethat have equal attribute values.inthashCode()Computes a hash code from attributes:nullable,elementType.booleannullable()toString()Prints the immutable valueListTypewith attribute values.withElementType(TypeExpression value) Copy the current immutable object by setting a value for theelementTypeattribute.withNullable(boolean value) Copy the current immutable object by setting a value for thenullableattribute.Methods inherited from class io.substrait.function.TypeExpression.BaseTypeExpression
accept
-
Method Details
-
nullable
public boolean nullable()- Returns:
- The value of the
nullableattribute
-
elementType
- Specified by:
elementTypein classTypeExpression.ListType- Returns:
- The value of the
elementTypeattribute
-
withNullable
Copy the current immutable object by setting a value for thenullableattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for nullable- Returns:
- A modified copy or the
thisobject
-
withElementType
Copy the current immutable object by setting a value for theelementTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for elementType- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofListTypethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:nullable,elementType. -
toString
Prints the immutable valueListTypewith attribute values. -
copyOf
Creates an immutable copy of aTypeExpression.ListTypevalue. 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 ListType instance
-
builder
Creates a builder forListType.ImmutableTypeExpression.ListType.builder() .nullable(boolean) // requirednullable.elementType(io.substrait.function.TypeExpression) // requiredelementType.build();- Returns:
- A new ListType builder
-