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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollect(RecordCollector recordCollector, String schemaPath, org.apache.calcite.schema.SchemaPlus schema) abstract PojoRecordReader<S> voidregisterRecordCollector(RecordCollector recordCollector) protected voidscanSchema(String schemaPath, org.apache.calcite.schema.SchemaPlus schema) Recursively scans the given schema, invoking the visitor as appropriate.voidscanSchema(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)
-