Class ImmutableExpression.DateLiteral.Builder

java.lang.Object
io.substrait.expression.ImmutableExpression.DateLiteral.Builder
Enclosing class:
ImmutableExpression.DateLiteral

public static final class ImmutableExpression.DateLiteral.Builder extends Object
Builds instances of type DateLiteral. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      Fill a builder with attribute values from the provided io.substrait.expression.Expression.Literal instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      Fill a builder with attribute values from the provided io.substrait.expression.Expression.DateLiteral instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • nullable

      public final ImmutableExpression.DateLiteral.Builder nullable(boolean nullable)
      Initializes the value for the nullable attribute.

      If not set, this attribute will have a default value as returned by the initializer of nullable.

      Parameters:
      nullable - The value for nullable
      Returns:
      this builder for use in a chained invocation
    • value

      public final ImmutableExpression.DateLiteral.Builder value(int value)
      Initializes the value for the value attribute.
      Parameters:
      value - The value for value
      Returns:
      this builder for use in a chained invocation
    • build

      Builds a new DateLiteral.
      Returns:
      An immutable instance of DateLiteral
      Throws:
      IllegalStateException - if any required attributes are missing