Class InfoSchemaRecordGenerator<S>
java.lang.Object
org.apache.drill.exec.store.ischema.InfoSchemaRecordGenerator<S>
- Direct Known Subclasses:
InfoSchemaRecordGenerator.Catalogs
,InfoSchemaRecordGenerator.Columns
,InfoSchemaRecordGenerator.Files
,InfoSchemaRecordGenerator.Partitions
,InfoSchemaRecordGenerator.Schemata
,InfoSchemaRecordGenerator.Tables
,InfoSchemaRecordGenerator.Views
Generates records for POJO RecordReader by scanning the given schema. At every level (catalog, schema, table, field, partition, file),
level specific object is visited and decision is taken to visit the contents of the object. Object here is catalog,
schema, table, field, partition, file.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncollect
(RecordCollector recordCollector, String schemaPath, org.apache.calcite.schema.SchemaPlus schema) abstract PojoRecordReader<S>
void
registerRecordCollector
(RecordCollector recordCollector) protected void
scanSchema
(String schemaPath, org.apache.calcite.schema.SchemaPlus schema) Recursively scans the given schema, invoking the visitor as appropriate.void
scanSchema
(org.apache.calcite.schema.SchemaPlus root) protected final void
-
Field Details
-
records
-
-
Constructor Details
-
InfoSchemaRecordGenerator
-
-
Method Details
-
registerRecordCollector
-
scanSchema
public void scanSchema(org.apache.calcite.schema.SchemaPlus root) -
scanSchema
Recursively scans the given schema, invoking the visitor as appropriate.- Parameters:
schemaPath
- the path to the given schema, so farschema
- the given schema
-
visit
-
getRecordReader
-
collect
protected abstract List<S> collect(RecordCollector recordCollector, String schemaPath, org.apache.calcite.schema.SchemaPlus schema)
-