public abstract class Schema extends org.apache.calcite.schema.impl.AbstractSchema implements org.apache.kafka.common.Configurable, Closeable
| Constructor and Description |
|---|
Schema() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
alterTable(String tableName,
List<org.apache.calcite.sql.ddl.SqlAlterTableExtension.Action> actions,
RelDef rowType) |
void |
configure(Map<String,?> configs) |
abstract Table |
createTable(String tableName,
Map<String,Object> operand,
RelDef rowType) |
abstract boolean |
dropTable(String tableName) |
Map<String,Object> |
getConfigs() |
abstract Map<String,org.apache.calcite.schema.Table> |
getTableMap() |
abstract void |
init() |
abstract void |
sync() |
static LinkedHashMap<String,ColumnDef> |
toColumnDefs(org.apache.calcite.rel.type.RelDataType rowType) |
static RelDef |
toRowType(LinkedHashMap<String,ColumnDef> columnTypes,
List<String> keyFields) |
getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, getType, getTypeMap, getTypeNames, isMutable, snapshotpublic void configure(Map<String,?> configs)
configure in interface org.apache.kafka.common.Configurablepublic abstract void init()
public abstract void sync()
public abstract Map<String,org.apache.calcite.schema.Table> getTableMap()
getTableMap in class org.apache.calcite.schema.impl.AbstractSchemapublic abstract Table createTable(String tableName, Map<String,Object> operand, RelDef rowType)
public abstract void alterTable(String tableName, List<org.apache.calcite.sql.ddl.SqlAlterTableExtension.Action> actions, RelDef rowType)
public abstract boolean dropTable(String tableName)
public static RelDef toRowType(LinkedHashMap<String,ColumnDef> columnTypes, List<String> keyFields)
public static LinkedHashMap<String,ColumnDef> toColumnDefs(org.apache.calcite.rel.type.RelDataType rowType)
Copyright © 2020. All rights reserved.