Modifier and Type | Method and Description |
---|---|
static DataType |
extractFromGeneric(DataTypeFactory typeFactory,
Class<?> baseClass,
int genericPos,
Type contextType)
Extracts a data type from a type variable at
genericPos of baseClass using
the information of the most specific type contextType . |
static DataType |
extractFromMethodOutput(DataTypeFactory typeFactory,
Class<?> baseClass,
Method method)
Extracts a data type from a method return type by considering surrounding classes and method
annotation.
|
static DataType |
extractFromMethodParameter(DataTypeFactory typeFactory,
Class<?> baseClass,
Method method,
int paramPos)
Extracts a data type from a method parameter by considering surrounding classes and parameter
annotation.
|
static DataType |
extractFromType(DataTypeFactory typeFactory,
org.apache.flink.table.types.extraction.DataTypeTemplate template,
Type type)
Extracts a data type from a type without considering surrounding classes but templates.
|
static DataType |
extractFromType(DataTypeFactory typeFactory,
Type type)
Extracts a data type from a type without considering surrounding classes or templates.
|
public static DataType extractFromType(DataTypeFactory typeFactory, Type type)
public static DataType extractFromType(DataTypeFactory typeFactory, org.apache.flink.table.types.extraction.DataTypeTemplate template, Type type)
public static DataType extractFromGeneric(DataTypeFactory typeFactory, Class<?> baseClass, int genericPos, Type contextType)
genericPos
of baseClass
using
the information of the most specific type contextType
.public static DataType extractFromMethodParameter(DataTypeFactory typeFactory, Class<?> baseClass, Method method, int paramPos)
public static DataType extractFromMethodOutput(DataTypeFactory typeFactory, Class<?> baseClass, Method method)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.