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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldPruneSchema(String schemaName) Prune the given schema.booleanVisit the catalog.booleanshouldVisitColumn(String schemaName, String tableName, String columnName) Visit the columns in the given schema and table.booleanshouldVisitFiles(String schemaName, org.apache.calcite.schema.SchemaPlus schema) Visit the files in the given schema.booleanshouldVisitSchema(String schemaName, org.apache.calcite.schema.SchemaPlus schema) Visit the given schema.booleanshouldVisitTable(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:FilterEvaluatorVisit the catalog. Drill has only one catalog.- Specified by:
shouldVisitCatalogin interfaceFilterEvaluator- Overrides:
shouldVisitCatalogin classFilterEvaluator.NoFilterEvaluator- Returns:
- whether to continue exploring the contents of the catalog or not. Contents are schema/schema tree.
-
shouldPruneSchema
Description copied from interface:FilterEvaluatorPrune the given schema.- Specified by:
shouldPruneSchemain interfaceFilterEvaluator- Overrides:
shouldPruneSchemain 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:FilterEvaluatorVisit the given schema.- Specified by:
shouldVisitSchemain interfaceFilterEvaluator- Overrides:
shouldVisitSchemain 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:FilterEvaluatorVisit the tables in the given schema.- Specified by:
shouldVisitTablein interfaceFilterEvaluator- Overrides:
shouldVisitTablein 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:FilterEvaluatorVisit the columns in the given schema and table.- Specified by:
shouldVisitColumnin interfaceFilterEvaluator- Overrides:
shouldVisitColumnin 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:FilterEvaluatorVisit the files in the given schema.- Specified by:
shouldVisitFilesin interfaceFilterEvaluator- Overrides:
shouldVisitFilesin classFilterEvaluator.NoFilterEvaluator- Parameters:
schemaName- name of the schemaschema- schema object- Returns:
- whether to continue exploring the files in the schema
-