public class TableSchema extends Object
Constructor and Description |
---|
TableSchema(String[] columnNames,
TypeInformation<?>[] columnTypes) |
Modifier and Type | Method and Description |
---|---|
scala.collection.immutable.Map<String,Object> |
columnNameToIndex() |
scala.Option<String> |
getColumnName(int columnIndex)
Returns the specified column name for the given column index.
|
String[] |
getColumnNames()
Returns all column names as an array.
|
scala.Option<TypeInformation<?>> |
getType(int columnIndex)
Returns the specified type information for the given column index.
|
scala.Option<TypeInformation<?>> |
getType(String columnName)
Returns the specified type information for the given column name.
|
TypeInformation<?>[] |
getTypes()
Returns all type information as an array.
|
String |
toString() |
public TableSchema(String[] columnNames, TypeInformation<?>[] columnTypes)
public TypeInformation<?>[] getTypes()
public scala.Option<TypeInformation<?>> getType(int columnIndex)
columnIndex
- the index of the fieldpublic scala.Option<TypeInformation<?>> getType(String columnName)
columnName
- the name of the fieldpublic String[] getColumnNames()
public scala.Option<String> getColumnName(int columnIndex)
columnIndex
- the index of the fieldCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.