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
Fields -
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.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoFilterEvaluator
public NoFilterEvaluator()
-
-
Method Details
-
shouldVisitCatalog
public boolean shouldVisitCatalog()Description copied from interface:FilterEvaluatorVisit the catalog. Drill has only one catalog.- Specified by:
shouldVisitCatalogin interfaceFilterEvaluator- 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- 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- 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- 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- 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- Parameters:
schemaName- name of the schemaschema- schema object- Returns:
- whether to continue exploring the files in the schema
-