public abstract class InfoSchemaRecordGenerator<S> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InfoSchemaRecordGenerator.Catalogs |
static class |
InfoSchemaRecordGenerator.Columns |
static class |
InfoSchemaRecordGenerator.Schemata |
static class |
InfoSchemaRecordGenerator.Tables |
static class |
InfoSchemaRecordGenerator.Views |
| Modifier and Type | Field and Description |
|---|---|
protected InfoSchemaFilter |
filter |
protected OptionManager |
optionManager |
| Constructor and Description |
|---|
InfoSchemaRecordGenerator(OptionManager optionManager) |
| Modifier and Type | Method and Description |
|---|---|
abstract PojoRecordReader<S> |
getRecordReader() |
void |
scanSchema(org.apache.calcite.schema.SchemaPlus root) |
void |
setInfoSchemaFilter(InfoSchemaFilter filter) |
protected boolean |
shouldVisitCatalog() |
protected boolean |
shouldVisitColumn(String schemaName,
String tableName,
String columnName) |
protected boolean |
shouldVisitSchema(String schemaName,
org.apache.calcite.schema.SchemaPlus schema) |
protected boolean |
shouldVisitTable(String schemaName,
String tableName,
org.apache.calcite.schema.Schema.TableType tableType) |
boolean |
visitCatalog()
Visit the catalog.
|
void |
visitField(String schemaName,
String tableName,
org.apache.calcite.rel.type.RelDataTypeField field)
Visit the given field.
|
boolean |
visitSchema(String schemaName,
org.apache.calcite.schema.SchemaPlus schema)
Visit the given schema.
|
boolean |
visitTable(String schemaName,
String tableName,
org.apache.calcite.schema.Table table)
Visit the given table.
|
void |
visitTables(String schemaPath,
org.apache.calcite.schema.SchemaPlus schema)
Visit the tables in the given schema.
|
protected InfoSchemaFilter filter
protected OptionManager optionManager
public InfoSchemaRecordGenerator(OptionManager optionManager)
public void setInfoSchemaFilter(InfoSchemaFilter filter)
public boolean visitCatalog()
public boolean visitSchema(String schemaName, org.apache.calcite.schema.SchemaPlus schema)
schemaName - Name of the schemaschema - Schema objectpublic boolean visitTable(String schemaName, String tableName, org.apache.calcite.schema.Table table)
schemaName - Name of the schema where the table is presenttableName - Name of the tabletable - Table objectpublic void visitField(String schemaName, String tableName, org.apache.calcite.rel.type.RelDataTypeField field)
schemaName - Schema where the table of the field is presenttableName - Table namefield - Field objectprotected boolean shouldVisitCatalog()
protected boolean shouldVisitSchema(String schemaName, org.apache.calcite.schema.SchemaPlus schema)
protected boolean shouldVisitTable(String schemaName, String tableName, org.apache.calcite.schema.Schema.TableType tableType)
protected boolean shouldVisitColumn(String schemaName, String tableName, String columnName)
public abstract PojoRecordReader<S> getRecordReader()
public void scanSchema(org.apache.calcite.schema.SchemaPlus root)
public void visitTables(String schemaPath, org.apache.calcite.schema.SchemaPlus schema)
schemaPath - the path to the given schemaschema - the given schemaCopyright © 2017 The Apache Software Foundation. All rights reserved.