public class KafkaSchema extends Schema
| Modifier and Type | Class and Description |
|---|---|
static class |
KafkaSchema.Action |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_VERSION |
static int |
MIN_VERSION |
| Constructor and Description |
|---|
KafkaSchema() |
| Modifier and Type | Method and Description |
|---|---|
void |
alterTable(String tableName,
List<org.apache.calcite.sql.ddl.SqlAlterTableExtension.Action> actions,
RelDef relDef) |
void |
close() |
void |
configure(Map<String,?> operand) |
Table |
createTable(String tableName,
Map<String,Object> operand,
RelDef rowType) |
boolean |
dropTable(String tableName) |
KafkaSchemaValue |
getLatestSchemaValue(String name) |
List<KafkaSchemaValue> |
getLatestSchemaValuesDescending(String name) |
KafkaSchemaValue |
getSchemaValue(String name,
int version) |
Map<String,org.apache.calcite.schema.Table> |
getTableMap() |
void |
init() |
void |
sync() |
getConfigs, toColumnDefs, toRowTypepublic static final int MIN_VERSION
public static final int MAX_VERSION
public Map<String,org.apache.calcite.schema.Table> getTableMap()
getTableMap in class Schemapublic KafkaSchemaValue getSchemaValue(String name, int version)
public List<KafkaSchemaValue> getLatestSchemaValuesDescending(String name)
public KafkaSchemaValue getLatestSchemaValue(String name)
public Table createTable(String tableName, Map<String,Object> operand, RelDef rowType)
createTable in class Schemapublic void alterTable(String tableName, List<org.apache.calcite.sql.ddl.SqlAlterTableExtension.Action> actions, RelDef relDef)
alterTable in class Schemapublic void close()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.