Class RecordCollector.MetastoreRecordCollector
java.lang.Object
org.apache.drill.exec.store.ischema.RecordCollector.MetastoreRecordCollector
- All Implemented Interfaces:
RecordCollector
- Enclosing interface:
RecordCollector
public static class RecordCollector.MetastoreRecordCollector
extends Object
implements RecordCollector
Provides information_schema data based on information stored in Drill Metastore.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.store.ischema.RecordCollector
RecordCollector.BasicRecordCollector, RecordCollector.MetastoreRecordCollector -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMetastoreRecordCollector(Metastore metastore, FilterEvaluator filterEvaluator) -
Method Summary
Modifier and TypeMethodDescriptionCollects catalogs data for information_schema.Collects columns data for information_schema.Collects files data for information_schema.partitions(String schemaPath, org.apache.calcite.schema.SchemaPlus schema) Collects partitions data for information_schema.Collects schemas data for information_schema.Collects tables data for information_schema.Collects views data for information_schema.
-
Field Details
-
UNDEFINED_INDEX
public static final int UNDEFINED_INDEX- See Also:
-
-
Constructor Details
-
MetastoreRecordCollector
-
-
Method Details
-
catalogs
public List<Records.Catalog> catalogs(String schemaPath, org.apache.calcite.schema.SchemaPlus schema) Description copied from interface:RecordCollectorCollects catalogs data for information_schema.- Specified by:
catalogsin interfaceRecordCollector- Parameters:
schemaPath- schema nameschema- schema instance- Returns:
- list of catalog records
-
schemas
Description copied from interface:RecordCollectorCollects schemas data for information_schema.- Specified by:
schemasin interfaceRecordCollector- Parameters:
schemaPath- schema nameschema- schema instance- Returns:
- list of schema records
-
tables
Description copied from interface:RecordCollectorCollects tables data for information_schema.- Specified by:
tablesin interfaceRecordCollector- Parameters:
schemaPath- schema nameschema- schema instance- Returns:
- list of table records
-
views
Description copied from interface:RecordCollectorCollects views data for information_schema.- Specified by:
viewsin interfaceRecordCollector- Parameters:
schemaPath- schema nameschema- schema instance- Returns:
- list of view records
-
columns
Description copied from interface:RecordCollectorCollects columns data for information_schema.- Specified by:
columnsin interfaceRecordCollector- Parameters:
schemaPath- schema nameschema- schema instance- Returns:
- list of column records
-
partitions
public List<Records.Partition> partitions(String schemaPath, org.apache.calcite.schema.SchemaPlus schema) Description copied from interface:RecordCollectorCollects partitions data for information_schema.- Specified by:
partitionsin interfaceRecordCollector- Parameters:
schemaPath- schema nameschema- schema instance- Returns:
- list of partition records
-
files
Description copied from interface:RecordCollectorCollects files data for information_schema.- Specified by:
filesin interfaceRecordCollector- Parameters:
schemaPath- schema nameschema- schema instance- Returns:
- list of file records
-