public class JavaTypeFactoryImpl extends SqlTypeFactoryImpl implements JavaTypeFactory
JavaTypeFactory.
NOTE: This class is experimental and subject to change/removal without notice.
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaTypeFactoryImpl.SyntheticRecordType
Synthetic record type.
|
RelDataTypeFactoryImpl.JavaTypeRelDataTypeFactory.FieldInfo, RelDataTypeFactory.FieldInfoBuildertypeSystem| Constructor and Description |
|---|
JavaTypeFactoryImpl() |
JavaTypeFactoryImpl(RelDataTypeSystem typeSystem) |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
createStructType(Class type)
Creates a record type based upon the public fields of a Java class.
|
Type |
createSyntheticType(List<Type> types)
Creates a synthetic Java class whose fields have the given Java
types.
|
RelDataType |
createType(Type type)
Creates a type, deducing whether a record, scalar or primitive type
is needed.
|
Type |
getJavaClass(RelDataType type) |
RelDataType |
toSql(RelDataType type)
Converts a type in Java format to a SQL-oriented type.
|
canonize, createArrayType, createMapType, createMultisetType, createSqlIntervalType, createSqlType, createSqlType, createSqlType, createTypeWithCharsetAndCollation, createTypeWithNullability, leastRestrictive, shouldRaggedFixedLengthValueUnionBeVariablebuilder, canonize, copyType, createDecimalProduct, createDecimalQuotient, createJavaType, createJoinType, createStructType, createStructType, createStructType, getDefaultCharset, getTypeSystem, isJavaType, leastRestrictiveStructuredType, useDoubleMultiplicationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, copyType, createArrayType, createDecimalProduct, createDecimalQuotient, createJavaType, createJoinType, createMapType, createMultisetType, createSqlIntervalType, createSqlType, createSqlType, createSqlType, createStructType, createStructType, createStructType, createTypeWithCharsetAndCollation, createTypeWithNullability, getDefaultCharset, getTypeSystem, leastRestrictive, useDoubleMultiplicationpublic JavaTypeFactoryImpl()
public JavaTypeFactoryImpl(RelDataTypeSystem typeSystem)
public RelDataType createStructType(Class type)
JavaTypeFactorycreateStructType in interface JavaTypeFactorytype - Java classpublic RelDataType createType(Type type)
JavaTypeFactorycreateType in interface JavaTypeFactorytype - Java type, such as a Classpublic Type getJavaClass(RelDataType type)
getJavaClass in interface JavaTypeFactorypublic RelDataType toSql(RelDataType type)
JavaTypeFactorytoSql in interface JavaTypeFactorypublic Type createSyntheticType(List<Type> types)
JavaTypeFactorycreateSyntheticType in interface JavaTypeFactoryCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.