Class ImmutableExpression.PrecisionTimestampTZLiteral

java.lang.Object
io.substrait.expression.Expression.PrecisionTimestampTZLiteral
io.substrait.expression.ImmutableExpression.PrecisionTimestampTZLiteral
All Implemented Interfaces:
Expression, Expression.Literal, FunctionArg
Enclosing class:
ImmutableExpression

public static final class ImmutableExpression.PrecisionTimestampTZLiteral extends Expression.PrecisionTimestampTZLiteral
Immutable implementation of Expression.PrecisionTimestampTZLiteral.

Use the builder to create immutable instances: ImmutableExpression.PrecisionTimestampTZLiteral.builder().

  • Method Details

    • nullable

      public boolean nullable()
      Returns:
      The value of the nullable attribute
    • value

      public long value()
      Specified by:
      value in class Expression.PrecisionTimestampTZLiteral
      Returns:
      The value of the value attribute
    • precision

      public int precision()
      Specified by:
      precision in class Expression.PrecisionTimestampTZLiteral
      Returns:
      The value of the precision attribute
    • withNullable

      public final ImmutableExpression.PrecisionTimestampTZLiteral withNullable(boolean value)
      Copy the current immutable object by setting a value for the nullable attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for nullable
      Returns:
      A modified copy or the this object
    • withValue

      public final ImmutableExpression.PrecisionTimestampTZLiteral withValue(long value)
      Copy the current immutable object by setting a value for the value attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for value
      Returns:
      A modified copy or the this object
    • withPrecision

      public final ImmutableExpression.PrecisionTimestampTZLiteral withPrecision(int value)
      Copy the current immutable object by setting a value for the precision attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for precision
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of PrecisionTimestampTZLiteral that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: nullable, value, precision.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value PrecisionTimestampTZLiteral with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a Expression.PrecisionTimestampTZLiteral value. 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 PrecisionTimestampTZLiteral instance
    • builder

      Creates a builder for PrecisionTimestampTZLiteral.
       ImmutableExpression.PrecisionTimestampTZLiteral.builder()
          .nullable(boolean) // optional nullable
          .value(long) // required value
          .precision(int) // required precision
          .build();
       
      Returns:
      A new PrecisionTimestampTZLiteral builder