Class TableSchema
java.lang.Object
com.clickhouse.client.api.metadata.TableSchema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcolumnIndexToName(int index) Takes absolute index (starting from 1) and return corresponding column.getColumnByName(String name) Returns unmodifiable collection of columns.getQuery()booleanindexToName(int index) Takes absolute index (starting from 0) and returns corresponding column.intnameToColumnIndex(String name) intnameToIndex(String name) voidsetDatabaseName(String databaseName) voidvoidsetTableName(String tableName) toString()
-
Constructor Details
-
TableSchema
public TableSchema()
-
-
Method Details
-
getColumns
Returns unmodifiable collection of columns.- Returns:
- - collection of columns in the table
-
getDatabaseName
-
getTableName
-
setTableName
-
setDatabaseName
-
hasDefaults
public boolean hasDefaults() -
getQuery
-
setQuery
-
addColumn
-
addColumn
-
getColumnByName
-
indexToName
Takes absolute index (starting from 0) and returns corresponding column.- Parameters:
index- - column index starting from 0- Returns:
- - column name
-
columnIndexToName
Takes absolute index (starting from 1) and return corresponding column. Equals toindexToName(index - 1.- Parameters:
index- - column index starting from 1- Returns:
- - column name.
-
nameToColumnIndex
-
nameToIndex
-
toString
-