Class FilterEvaluator.InfoSchemaFilterEvaluator
java.lang.Object
org.apache.drill.exec.store.ischema.FilterEvaluator.NoFilterEvaluator
org.apache.drill.exec.store.ischema.FilterEvaluator.InfoSchemaFilterEvaluator
- All Implemented Interfaces:
FilterEvaluator
- Enclosing interface:
- FilterEvaluator
public static class FilterEvaluator.InfoSchemaFilterEvaluator
extends FilterEvaluator.NoFilterEvaluator
Evaluates necessity to visit certain type of information_schema data using provided filter.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.store.ischema.FilterEvaluator
FilterEvaluator.InfoSchemaFilterEvaluator, FilterEvaluator.NoFilterEvaluator
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.ischema.FilterEvaluator.NoFilterEvaluator
INSTANCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldPruneSchema
(String schemaName) Prune the given schema.boolean
Visit the catalog.boolean
shouldVisitColumn
(String schemaName, String tableName, String columnName) Visit the columns in the given schema and table.boolean
shouldVisitFiles
(String schemaName, org.apache.calcite.schema.SchemaPlus schema) Visit the files in the given schema.boolean
shouldVisitSchema
(String schemaName, org.apache.calcite.schema.SchemaPlus schema) Visit the given schema.boolean
shouldVisitTable
(String schemaName, String tableName, org.apache.calcite.schema.Schema.TableType tableType) Visit the tables in the given schema.
-
Constructor Details
-
InfoSchemaFilterEvaluator
-
-
Method Details
-
shouldVisitCatalog
public boolean shouldVisitCatalog()Description copied from interface:FilterEvaluator
Visit the catalog. Drill has only one catalog.- Specified by:
shouldVisitCatalog
in interfaceFilterEvaluator
- Overrides:
shouldVisitCatalog
in classFilterEvaluator.NoFilterEvaluator
- Returns:
- whether to continue exploring the contents of the catalog or not. Contents are schema/schema tree.
-
shouldPruneSchema
Description copied from interface:FilterEvaluator
Prune the given schema.- Specified by:
shouldPruneSchema
in interfaceFilterEvaluator
- Overrides:
shouldPruneSchema
in classFilterEvaluator.NoFilterEvaluator
- Parameters:
schemaName
- name of the schema- Returns:
- whether to prune this schema and all its descendants from the search tree.
-
shouldVisitSchema
Description copied from interface:FilterEvaluator
Visit the given schema.- Specified by:
shouldVisitSchema
in interfaceFilterEvaluator
- Overrides:
shouldVisitSchema
in classFilterEvaluator.NoFilterEvaluator
- Parameters:
schemaName
- name of the schemaschema
- schema object- Returns:
- whether to continue exploring the contents of the schema or not. Contents are tables within the schema.
-
shouldVisitTable
public boolean shouldVisitTable(String schemaName, String tableName, org.apache.calcite.schema.Schema.TableType tableType) Description copied from interface:FilterEvaluator
Visit the tables in the given schema.- Specified by:
shouldVisitTable
in interfaceFilterEvaluator
- Overrides:
shouldVisitTable
in classFilterEvaluator.NoFilterEvaluator
- Parameters:
schemaName
- name of the schematableName
- name of the tabletableType
- type of the table- Returns:
- whether to continue exploring the contents of the table or not. Contents are tables attributes and columns.
-
shouldVisitColumn
Description copied from interface:FilterEvaluator
Visit the columns in the given schema and table.- Specified by:
shouldVisitColumn
in interfaceFilterEvaluator
- Overrides:
shouldVisitColumn
in classFilterEvaluator.NoFilterEvaluator
- Parameters:
schemaName
- name of the schematableName
- name of the tablecolumnName
- type of the table- Returns:
- whether to continue exploring the contents of the column or not. Contents are columns attributes.
-
shouldVisitFiles
Description copied from interface:FilterEvaluator
Visit the files in the given schema.- Specified by:
shouldVisitFiles
in interfaceFilterEvaluator
- Overrides:
shouldVisitFiles
in classFilterEvaluator.NoFilterEvaluator
- Parameters:
schemaName
- name of the schemaschema
- schema object- Returns:
- whether to continue exploring the files in the schema
-