Class FilterEvaluator.NoFilterEvaluator
java.lang.Object
org.apache.drill.exec.store.ischema.FilterEvaluator.NoFilterEvaluator
- All Implemented Interfaces:
FilterEvaluator
- Direct Known Subclasses:
FilterEvaluator.InfoSchemaFilterEvaluator
- Enclosing interface:
- FilterEvaluator
Evaluates necessity to visit certain type of information_schema data based
on given schema type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.store.ischema.FilterEvaluator
FilterEvaluator.InfoSchemaFilterEvaluator, FilterEvaluator.NoFilterEvaluator
-
Field Summary
-
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.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoFilterEvaluator
public NoFilterEvaluator()
-
-
Method Details
-
shouldVisitCatalog
public boolean shouldVisitCatalog()Description copied from interface:FilterEvaluator
Visit the catalog. Drill has only one catalog.- Specified by:
shouldVisitCatalog
in interfaceFilterEvaluator
- 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
- 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
- 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
- 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
- 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
- Parameters:
schemaName
- name of the schemaschema
- schema object- Returns:
- whether to continue exploring the files in the schema
-