Package io.substrait.expression
Class ImmutableExpression.TimeLiteral
java.lang.Object
io.substrait.expression.Expression.TimeLiteral
io.substrait.expression.ImmutableExpression.TimeLiteral
- All Implemented Interfaces:
Expression,Expression.Literal,FunctionArg
- Enclosing class:
- ImmutableExpression
@Deprecated
public static final class ImmutableExpression.TimeLiteral
extends Expression.TimeLiteral
Deprecated.
Immutable implementation of
Expression.TimeLiteral.
Use the builder to create immutable instances:
ImmutableExpression.TimeLiteral.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.Builds instances of typeTimeLiteral.Nested classes/interfaces inherited from interface io.substrait.expression.Expression
Expression.AggregationInvocation, Expression.AggregationPhase, Expression.BinaryLiteral, Expression.BoolLiteral, Expression.Cast, Expression.DateLiteral, Expression.DecimalLiteral, Expression.EmptyListLiteral, Expression.EmptyMapLiteral, Expression.FailureBehavior, Expression.FixedBinaryLiteral, Expression.FixedCharLiteral, Expression.FP32Literal, Expression.FP64Literal, Expression.I16Literal, Expression.I32Literal, Expression.I64Literal, Expression.I8Literal, Expression.IfClause, Expression.IfThen, Expression.InPredicate, Expression.IntervalCompoundLiteral, Expression.IntervalDayLiteral, Expression.IntervalYearLiteral, Expression.Lambda, Expression.ListLiteral, Expression.Literal, Expression.MapLiteral, Expression.MultiOrList, Expression.MultiOrListRecord, Expression.Nested, Expression.NestedList, Expression.NestedStruct, Expression.NullLiteral, Expression.PrecisionTimeLiteral, Expression.PrecisionTimestampLiteral, Expression.PrecisionTimestampTZLiteral, Expression.PredicateOp, Expression.ScalarFunctionInvocation, Expression.ScalarSubquery, Expression.SetPredicate, Expression.SingleOrList, Expression.SortDirection, Expression.SortField, Expression.StrLiteral, Expression.StructLiteral, Expression.Subquery, Expression.Switch, Expression.SwitchClause, Expression.TimeLiteral, Expression.TimestampLiteral, Expression.TimestampTZLiteral, Expression.UserDefinedAnyLiteral, Expression.UserDefinedLiteral, Expression.UserDefinedStructLiteral, Expression.UUIDLiteral, Expression.VarCharLiteral, Expression.WindowBoundsType, Expression.WindowFunctionInvocationNested classes/interfaces inherited from interface io.substrait.expression.FunctionArg
FunctionArg.FuncArgVisitor<R,C extends VisitationContext, E extends Throwable>, FunctionArg.ProtoFrom -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated.Creates a builder forTimeLiteral.copyOf(Expression.TimeLiteral instance) Deprecated.Creates an immutable copy of aExpression.TimeLiteralvalue.booleanDeprecated.This instance is equal to all instances ofTimeLiteralthat have equal attribute values.inthashCode()Deprecated.Computes a hash code from attributes:nullable,value.booleannullable()Deprecated.toString()Deprecated.Prints the immutable valueTimeLiteralwith attribute values.longvalue()Deprecated.withNullable(boolean value) Deprecated.Copy the current immutable object by setting a value for thenullableattribute.withValue(long value) Deprecated.Copy the current immutable object by setting a value for thevalueattribute.Methods inherited from class io.substrait.expression.Expression.TimeLiteral
accept, getTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.substrait.expression.Expression
accept
-
Method Details
-
nullable
public boolean nullable()Deprecated.- Returns:
- The value of the
nullableattribute
-
value
public long value()Deprecated.- Specified by:
valuein classExpression.TimeLiteral- Returns:
- The value of the
valueattribute
-
withNullable
Deprecated.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
-
withValue
Deprecated.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
Deprecated.This instance is equal to all instances ofTimeLiteralthat have equal attribute values. -
hashCode
public int hashCode()Deprecated.Computes a hash code from attributes:nullable,value. -
toString
Deprecated.Prints the immutable valueTimeLiteralwith attribute values. -
copyOf
Deprecated.Creates an immutable copy of aExpression.TimeLiteralvalue. 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 TimeLiteral instance
-
builder
Deprecated.Creates a builder forTimeLiteral.ImmutableExpression.TimeLiteral.builder() .nullable(boolean) // optionalnullable.value(long) // requiredvalue.build();- Returns:
- A new TimeLiteral builder
-