Package io.substrait.function
Class ImmutableTypeExpression.PrecisionTimestampTZ
java.lang.Object
io.substrait.function.TypeExpression.BaseTypeExpression
io.substrait.function.TypeExpression.PrecisionTimestampTZ
io.substrait.function.ImmutableTypeExpression.PrecisionTimestampTZ
- All Implemented Interfaces:
NullableType,TypeExpression
- Enclosing class:
- ImmutableTypeExpression
public static final class ImmutableTypeExpression.PrecisionTimestampTZ
extends TypeExpression.PrecisionTimestampTZ
Immutable implementation of
TypeExpression.PrecisionTimestampTZ.
Use the builder to create immutable instances:
ImmutableTypeExpression.PrecisionTimestampTZ.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typePrecisionTimestampTZ.Nested 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 forPrecisionTimestampTZ.copyOf(TypeExpression.PrecisionTimestampTZ instance) Creates an immutable copy of aTypeExpression.PrecisionTimestampTZvalue.booleanThis instance is equal to all instances ofPrecisionTimestampTZthat have equal attribute values.inthashCode()Computes a hash code from attributes:nullable,precision.booleannullable()toString()Prints the immutable valuePrecisionTimestampTZwith attribute values.withNullable(boolean value) Copy the current immutable object by setting a value for thenullableattribute.withPrecision(TypeExpression value) Copy the current immutable object by setting a value for theprecisionattribute.Methods inherited from class io.substrait.function.TypeExpression.BaseTypeExpression
accept
-
Method Details
-
nullable
public boolean nullable()- Returns:
- The value of the
nullableattribute
-
precision
- Specified by:
precisionin classTypeExpression.PrecisionTimestampTZ- Returns:
- The value of the
precisionattribute
-
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
-
withPrecision
Copy the current immutable object by setting a value for theprecisionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for precision- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofPrecisionTimestampTZthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:nullable,precision. -
toString
Prints the immutable valuePrecisionTimestampTZwith attribute values. -
copyOf
public static ImmutableTypeExpression.PrecisionTimestampTZ copyOf(TypeExpression.PrecisionTimestampTZ instance) Creates an immutable copy of aTypeExpression.PrecisionTimestampTZvalue. 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 PrecisionTimestampTZ instance
-
builder
Creates a builder forPrecisionTimestampTZ.ImmutableTypeExpression.PrecisionTimestampTZ.builder() .nullable(boolean) // requirednullable.precision(io.substrait.function.TypeExpression) // requiredprecision.build();- Returns:
- A new PrecisionTimestampTZ builder
-