public abstract class InfoSchemaRecordGenerator<S> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
InfoSchemaRecordGenerator.Catalogs |
static class |
InfoSchemaRecordGenerator.Columns |
static class |
InfoSchemaRecordGenerator.Files |
static class |
InfoSchemaRecordGenerator.Partitions |
static class |
InfoSchemaRecordGenerator.Schemata |
static class |
InfoSchemaRecordGenerator.Tables |
static class |
InfoSchemaRecordGenerator.Views |
Constructor and Description |
---|
InfoSchemaRecordGenerator(FilterEvaluator filterEvaluator) |
Modifier and Type | Method and Description |
---|---|
protected abstract List<S> |
collect(RecordCollector recordCollector,
String schemaPath,
org.apache.calcite.schema.SchemaPlus schema) |
abstract PojoRecordReader<S> |
getRecordReader() |
void |
registerRecordCollector(RecordCollector recordCollector) |
void |
scanSchema(org.apache.calcite.schema.SchemaPlus root) |
protected void |
scanSchema(String schemaPath,
org.apache.calcite.schema.SchemaPlus schema)
Recursively scans the given schema, invoking the visitor as appropriate.
|
protected void |
visit(String schemaPath,
org.apache.calcite.schema.SchemaPlus schema) |
public InfoSchemaRecordGenerator(FilterEvaluator filterEvaluator)
public void registerRecordCollector(RecordCollector recordCollector)
public void scanSchema(org.apache.calcite.schema.SchemaPlus root)
protected void scanSchema(String schemaPath, org.apache.calcite.schema.SchemaPlus schema)
schemaPath
- the path to the given schema, so farschema
- the given schemaprotected final void visit(String schemaPath, org.apache.calcite.schema.SchemaPlus schema)
public abstract PojoRecordReader<S> getRecordReader()
protected abstract List<S> collect(RecordCollector recordCollector, String schemaPath, org.apache.calcite.schema.SchemaPlus schema)
Copyright © 1970 The Apache Software Foundation. All rights reserved.