Package io.substrait.expression
Class ImmutableExpression.EmptyMapLiteral
java.lang.Object
io.substrait.expression.Expression.EmptyMapLiteral
io.substrait.expression.ImmutableExpression.EmptyMapLiteral
- All Implemented Interfaces:
Expression,Expression.Literal,FunctionArg
- Enclosing class:
- ImmutableExpression
Immutable implementation of
Expression.EmptyMapLiteral.
Use the builder to create immutable instances:
ImmutableExpression.EmptyMapLiteral.builder().
-
Nested Class Summary
Nested ClassesNested 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()Creates a builder forEmptyMapLiteral.copyOf(Expression.EmptyMapLiteral instance) Creates an immutable copy of aExpression.EmptyMapLiteralvalue.booleanThis instance is equal to all instances ofEmptyMapLiteralthat have equal attribute values.inthashCode()Computes a hash code from attributes:nullable,keyType,valueType.keyType()booleannullable()toString()Prints the immutable valueEmptyMapLiteralwith attribute values.withKeyType(Type value) Copy the current immutable object by setting a value for thekeyTypeattribute.withNullable(boolean value) Copy the current immutable object by setting a value for thenullableattribute.withValueType(Type value) Copy the current immutable object by setting a value for thevalueTypeattribute.Methods inherited from class io.substrait.expression.Expression.EmptyMapLiteral
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()- Returns:
- The value of the
nullableattribute
-
keyType
- Specified by:
keyTypein classExpression.EmptyMapLiteral- Returns:
- The value of the
keyTypeattribute
-
valueType
- Specified by:
valueTypein classExpression.EmptyMapLiteral- Returns:
- The value of the
valueTypeattribute
-
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
-
withKeyType
Copy the current immutable object by setting a value for thekeyTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for keyType- Returns:
- A modified copy or the
thisobject
-
withValueType
Copy the current immutable object by setting a value for thevalueTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valueType- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofEmptyMapLiteralthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:nullable,keyType,valueType. -
toString
Prints the immutable valueEmptyMapLiteralwith attribute values. -
copyOf
Creates an immutable copy of aExpression.EmptyMapLiteralvalue. 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 EmptyMapLiteral instance
-
builder
Creates a builder forEmptyMapLiteral.ImmutableExpression.EmptyMapLiteral.builder() .nullable(boolean) // optionalnullable.keyType(io.substrait.type.Type) // requiredkeyType.valueType(io.substrait.type.Type) // requiredvalueType.build();- Returns:
- A new EmptyMapLiteral builder
-