Package io.substrait.function
Class ImmutableParameterizedType.FixedChar
java.lang.Object
io.substrait.function.ParameterizedType.BaseParameterizedType
io.substrait.function.ParameterizedType.FixedChar
io.substrait.function.ImmutableParameterizedType.FixedChar
- All Implemented Interfaces:
NullableType,ParameterizedType,TypeExpression
- Enclosing class:
- ImmutableParameterizedType
Immutable implementation of
ParameterizedType.FixedChar.
Use the builder to create immutable instances:
ImmutableParameterizedType.FixedChar.builder().
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.substrait.function.ParameterizedType
ParameterizedType.BaseParameterizedType, ParameterizedType.Decimal, ParameterizedType.FixedBinary, ParameterizedType.FixedChar, ParameterizedType.Func, ParameterizedType.IntervalCompound, ParameterizedType.IntervalDay, ParameterizedType.ListType, ParameterizedType.Map, ParameterizedType.NullableParameterizedType, ParameterizedType.PrecisionTime, ParameterizedType.PrecisionTimestamp, ParameterizedType.PrecisionTimestampTZ, ParameterizedType.RequiredParameterizedVisitorException, ParameterizedType.StringLiteral, ParameterizedType.Struct, ParameterizedType.VarCharNested classes/interfaces inherited from interface io.substrait.function.TypeExpression
TypeExpression.BaseTypeExpression, TypeExpression.BinaryOperation, TypeExpression.IfOperation, TypeExpression.IntegerLiteral, TypeExpression.NotOperation, TypeExpression.RequiredTypeExpressionVisitorException, TypeExpression.ReturnProgram -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forFixedChar.copyOf(ParameterizedType.FixedChar instance) Creates an immutable copy of aParameterizedType.FixedCharvalue.booleanThis instance is equal to all instances ofFixedCharthat have equal attribute values.inthashCode()Computes a hash code from attributes:nullable,length.length()booleannullable()toString()Prints the immutable valueFixedCharwith attribute values.Copy the current immutable object by setting a value for thelengthattribute.withNullable(boolean value) Copy the current immutable object by setting a value for thenullableattribute.Methods inherited from class io.substrait.function.ParameterizedType.BaseParameterizedType
acceptMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.substrait.function.ParameterizedType
isWildcard
-
Method Details
-
nullable
public boolean nullable()- Returns:
- The value of the
nullableattribute
-
length
- Specified by:
lengthin classParameterizedType.FixedChar- Returns:
- The value of the
lengthattribute
-
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
-
withLength
Copy the current immutable object by setting a value for thelengthattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for length- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofFixedCharthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:nullable,length. -
toString
Prints the immutable valueFixedCharwith attribute values. -
copyOf
Creates an immutable copy of aParameterizedType.FixedCharvalue. 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 FixedChar instance
-
builder
Creates a builder forFixedChar.ImmutableParameterizedType.FixedChar.builder() .nullable(boolean) // requirednullable.length(io.substrait.function.ParameterizedType.StringLiteral) // requiredlength.build();- Returns:
- A new FixedChar builder
-