public class AvroSchema extends Schema
| Modifier and Type | Field and Description |
|---|---|
static String |
AVRO_LOGICAL_DATE |
static String |
AVRO_LOGICAL_DECIMAL |
static String |
AVRO_LOGICAL_DECIMAL_PRECISION_PROP |
static String |
AVRO_LOGICAL_DECIMAL_SCALE_PROP |
static String |
AVRO_LOGICAL_TIME_MILLIS |
static String |
AVRO_LOGICAL_TIMESTAMP_MILLIS |
static String |
AVRO_LOGICAL_TYPE_PROP |
static String |
SQL_KEY_INDEX_PROP |
| Constructor and Description |
|---|
AvroSchema()
Creates an Avro schema.
|
| Modifier and Type | Method and Description |
|---|---|
void |
alterTable(String tableName,
List<org.apache.calcite.sql.ddl.SqlAlterTableExtension.Action> actions,
RelDef rowType) |
void |
close() |
void |
configure(Map<String,?> operand) |
Table |
createTable(String tableName,
Map<String,Object> operand,
RelDef rowType) |
boolean |
dropTable(String tableName) |
static Comparable |
fromAvroValue(org.apache.avro.Schema schema,
Comparable value) |
Map<String,org.apache.calcite.schema.Table> |
getTableMap() |
void |
init() |
void |
sync() |
static org.apache.avro.Schema |
toAvroSchema(String tableName,
RelDef relDef) |
static Comparable |
toAvroValue(org.apache.avro.Schema schema,
Comparable value) |
static org.apache.calcite.util.Pair<LinkedHashMap<String,ColumnDef>,List<String>> |
toColumnDefs(org.apache.avro.Schema schema) |
static RelDef |
toRowType(org.apache.avro.Schema schema) |
getConfigs, toColumnDefs, toRowTypepublic static final String AVRO_LOGICAL_TYPE_PROP
public static final String AVRO_LOGICAL_TIMESTAMP_MILLIS
public static final String AVRO_LOGICAL_TIME_MILLIS
public static final String AVRO_LOGICAL_DATE
public static final String AVRO_LOGICAL_DECIMAL
public static final String AVRO_LOGICAL_DECIMAL_SCALE_PROP
public static final String AVRO_LOGICAL_DECIMAL_PRECISION_PROP
public static final String SQL_KEY_INDEX_PROP
public Map<String,org.apache.calcite.schema.Table> getTableMap()
getTableMap in class Schemapublic 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 rowType)
alterTable in class Schemapublic void close()
public static RelDef toRowType(org.apache.avro.Schema schema)
public static org.apache.calcite.util.Pair<LinkedHashMap<String,ColumnDef>,List<String>> toColumnDefs(org.apache.avro.Schema schema)
public static Comparable toAvroValue(org.apache.avro.Schema schema, Comparable value)
public static Comparable fromAvroValue(org.apache.avro.Schema schema, Comparable value)
Copyright © 2020. All rights reserved.