Package io.substrait.function
Class ImmutableTypeExpression.IntegerLiteral
java.lang.Object
io.substrait.function.TypeExpression.BaseTypeExpression
io.substrait.function.TypeExpression.IntegerLiteral
io.substrait.function.ImmutableTypeExpression.IntegerLiteral
- All Implemented Interfaces:
TypeExpression
- Enclosing class:
- ImmutableTypeExpression
public static final class ImmutableTypeExpression.IntegerLiteral
extends TypeExpression.IntegerLiteral
Immutable implementation of
TypeExpression.IntegerLiteral.
Use the builder to create immutable instances:
ImmutableTypeExpression.IntegerLiteral.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 forIntegerLiteral.copyOf(TypeExpression.IntegerLiteral instance) Creates an immutable copy of aTypeExpression.IntegerLiteralvalue.booleanThis instance is equal to all instances ofIntegerLiteralthat have equal attribute values.inthashCode()Computes a hash code from attributes:value.toString()Prints the immutable valueIntegerLiteralwith attribute values.intvalue()withValue(int value) Copy the current immutable object by setting a value for thevalueattribute.Methods inherited from class io.substrait.function.TypeExpression.BaseTypeExpression
accept
-
Method Details
-
value
public int value()- Specified by:
valuein classTypeExpression.IntegerLiteral- Returns:
- The value of the
valueattribute
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. A value 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
-
equals
This instance is equal to all instances ofIntegerLiteralthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value. -
toString
Prints the immutable valueIntegerLiteralwith attribute values. -
copyOf
Creates an immutable copy of aTypeExpression.IntegerLiteralvalue. 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 IntegerLiteral instance
-
builder
Creates a builder forIntegerLiteral.ImmutableTypeExpression.IntegerLiteral.builder() .value(int) // requiredvalue.build();- Returns:
- A new IntegerLiteral builder
-