Package io.substrait.type
Interface Type
- All Superinterfaces:
FunctionArg,NullableType,ParameterizedType,TypeExpression
- All Known Implementing Classes:
ImmutableType.Binary,ImmutableType.Bool,ImmutableType.Date,ImmutableType.Decimal,ImmutableType.FixedBinary,ImmutableType.FixedChar,ImmutableType.FP32,ImmutableType.FP64,ImmutableType.Func,ImmutableType.I16,ImmutableType.I32,ImmutableType.I64,ImmutableType.I8,ImmutableType.IntervalCompound,ImmutableType.IntervalDay,ImmutableType.IntervalYear,ImmutableType.ListType,ImmutableType.Map,ImmutableType.PrecisionTime,ImmutableType.PrecisionTimestamp,ImmutableType.PrecisionTimestampTZ,ImmutableType.Str,ImmutableType.Struct,ImmutableType.Time,ImmutableType.Timestamp,ImmutableType.TimestampTZ,ImmutableType.UserDefined,ImmutableType.UUID,ImmutableType.VarChar,Type.Binary,Type.Bool,Type.Date,Type.Decimal,Type.FixedBinary,Type.FixedChar,Type.FP32,Type.FP64,Type.Func,Type.I16,Type.I32,Type.I64,Type.I8,Type.IntervalCompound,Type.IntervalDay,Type.IntervalYear,Type.ListType,Type.Map,Type.PrecisionTime,Type.PrecisionTimestamp,Type.PrecisionTimestampTZ,Type.Str,Type.Struct,Type.Time,Type.Timestamp,Type.TimestampTZ,Type.UserDefined,Type.UUID,Type.VarChar
@Enclosing
public interface Type
extends TypeExpression, ParameterizedType, NullableType, FunctionArg
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic interfaceRepresents a type parameter for user-defined types.static classA boolean value parameter.static classA data type parameter, such as thei32inList<i32>.static classAn enum value parameter (represented as a string).static classAn integer value parameter, such as the10inVARCHAR<10>.static classAn explicitly null/unspecified parameter, used to select the default value (if any).static classA string value parameter.static classstatic classstatic classstatic classstatic classstatic classDeprecated.static classDeprecated.static classDeprecated.static classstatic classstatic classNested classes/interfaces inherited from interface io.substrait.expression.FunctionArg
FunctionArg.FuncArgVisitor<R,C extends VisitationContext, E extends Throwable>, FunctionArg.ProtoFrom Nested classes/interfaces inherited from interface io.substrait.function.ParameterizedType
ParameterizedType.BaseParameterizedType, ParameterizedType.NullableParameterizedType, ParameterizedType.RequiredParameterizedVisitorException, ParameterizedType.StringLiteralNested classes/interfaces inherited from interface io.substrait.function.TypeExpression
TypeExpression.BaseTypeExpression, TypeExpression.BinaryOperation, TypeExpression.IfOperation, TypeExpression.IntegerLiteral, TypeExpression.NotOperation, TypeExpression.RequiredTypeExpressionVisitorException, TypeExpression.ReturnProgram -
Method Summary
Modifier and TypeMethodDescriptiondefault <R,C extends VisitationContext, E extends Throwable>
Raccept(SimpleExtension.Function fnDef, int argIdx, FunctionArg.FuncArgVisitor<R, C, E> fnArgVisitor, C context) <R,E extends Throwable>
Raccept(TypeVisitor<R, E> typeVisitor) default booleanequalsIgnoringNullability(Type other) Compares this type with another type, ignoring nullability differences.static TypeCreatorwithNullability(boolean nullable) withNullable(boolean nullable) Returns a copy of theTypewith the specified nullability.Methods inherited from interface io.substrait.function.NullableType
nullableMethods inherited from interface io.substrait.function.ParameterizedType
isWildcard
-
Method Details
-
withNullable
-
withNullability
-
accept
- Specified by:
acceptin interfaceParameterizedType- Specified by:
acceptin interfaceTypeExpression- Throws:
E extends Throwable
-
accept
default <R,C extends VisitationContext, R acceptE extends Throwable> (SimpleExtension.Function fnDef, int argIdx, FunctionArg.FuncArgVisitor<R, C, throws EE> fnArgVisitor, C context) - Specified by:
acceptin interfaceFunctionArg- Throws:
E extends Throwable
-
equalsIgnoringNullability
Compares this type with another type, ignoring nullability differences.- Parameters:
other- the type to compare with- Returns:
- true if the types are equal when both are treated as nullable
-