public class FlinkTableSchema extends Object implements Serializable
| 构造器和说明 |
|---|
FlinkTableSchema(org.apache.flink.table.api.TableSchema schema) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
int |
getFieldCount()
Returns the number of fields.
|
Optional<org.apache.flink.table.types.DataType> |
getFieldDataType(int fieldIndex)
Returns the specified data type for the given field index.
|
Optional<org.apache.flink.table.types.DataType> |
getFieldDataType(String fieldName)
Returns the specified data type for the given field name.
|
org.apache.flink.table.types.DataType[] |
getFieldDataTypes()
Returns all field data types as an array.
|
Optional<String> |
getFieldName(int fieldIndex)
Returns the specified name for the given field index.
|
String[] |
getFieldNames()
Returns all field names as an array.
|
Optional<org.apache.flink.api.common.typeinfo.TypeInformation<?>> |
getFieldType(int fieldIndex)
This method will be removed in future versions as it uses the old type system.
|
Optional<org.apache.flink.api.common.typeinfo.TypeInformation<?>> |
getFieldType(String fieldName)
This method will be removed in future versions as it uses the old type system.
|
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] |
getFieldTypes()
This method will be removed in future versions as it uses the old type system.
|
int |
hashCode() |
String |
toString() |
public org.apache.flink.table.types.DataType[] getFieldDataTypes()
public org.apache.flink.api.common.typeinfo.TypeInformation<?>[] getFieldTypes()
getFieldDataTypes() instead which uses the new type
system based on DataTypes. Please make sure to use either the old or the new
type system consistently to avoid unintended behavior. See the website documentation
for more information.public Optional<org.apache.flink.table.types.DataType> getFieldDataType(int fieldIndex)
fieldIndex - the index of the fieldpublic Optional<org.apache.flink.api.common.typeinfo.TypeInformation<?>> getFieldType(int fieldIndex)
getFieldDataType(int) instead which uses the new type
system based on DataTypes. Please make sure to use either the old or the new
type system consistently to avoid unintended behavior. See the website documentation
for more information.public Optional<org.apache.flink.table.types.DataType> getFieldDataType(String fieldName)
fieldName - the name of the fieldpublic Optional<org.apache.flink.api.common.typeinfo.TypeInformation<?>> getFieldType(String fieldName)
getFieldDataType(String) instead which uses the new type
system based on DataTypes. Please make sure to use either the old or the new
type system consistently to avoid unintended behavior. See the website documentation
for more information.public int getFieldCount()
public String[] getFieldNames()
public Optional<String> getFieldName(int fieldIndex)
fieldIndex - the index of the fieldCopyright © 2024. All rights reserved.