Package org.apache.calcite.interpreter
Class TableScanNode
- java.lang.Object
-
- org.apache.calcite.interpreter.TableScanNode
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TableScanNode(Compiler compiler, TableScan rel, Enumerable<Row> enumerable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static TableScanNode
create(Compiler compiler, TableScan rel, com.google.common.collect.ImmutableList<RexNode> filters, ImmutableIntList projects)
Creates a TableScanNode.private static TableScanNode
createEnumerable(Compiler compiler, TableScan rel, Enumerable<Row> enumerable, ImmutableIntList acceptedProjects, java.util.List<RexNode> rejectedFilters, ImmutableIntList rejectedProjects)
private static TableScanNode
createFilterable(Compiler compiler, TableScan rel, com.google.common.collect.ImmutableList<RexNode> filters, ImmutableIntList projects, FilterableTable filterableTable)
private static TableScanNode
createProjectableFilterable(Compiler compiler, TableScan rel, com.google.common.collect.ImmutableList<RexNode> filters, ImmutableIntList projects, ProjectableFilterableTable pfTable)
private static TableScanNode
createQueryable(Compiler compiler, TableScan rel, com.google.common.collect.ImmutableList<RexNode> filters, ImmutableIntList projects, QueryableTable queryableTable)
private static TableScanNode
createScannable(Compiler compiler, TableScan rel, com.google.common.collect.ImmutableList<RexNode> filters, ImmutableIntList projects, ScannableTable scannableTable)
void
run()
-
-
-
Constructor Detail
-
TableScanNode
private TableScanNode(Compiler compiler, TableScan rel, Enumerable<Row> enumerable)
-
-
Method Detail
-
create
static TableScanNode create(Compiler compiler, TableScan rel, com.google.common.collect.ImmutableList<RexNode> filters, ImmutableIntList projects)
Creates a TableScanNode.Tries various table SPIs, and negotiates with the table which filters and projects it can implement. Adds to the Enumerable implementations of any filters and projects that cannot be implemented by the table.
-
createScannable
private static TableScanNode createScannable(Compiler compiler, TableScan rel, com.google.common.collect.ImmutableList<RexNode> filters, ImmutableIntList projects, ScannableTable scannableTable)
-
createQueryable
private static TableScanNode createQueryable(Compiler compiler, TableScan rel, com.google.common.collect.ImmutableList<RexNode> filters, ImmutableIntList projects, QueryableTable queryableTable)
-
createFilterable
private static TableScanNode createFilterable(Compiler compiler, TableScan rel, com.google.common.collect.ImmutableList<RexNode> filters, ImmutableIntList projects, FilterableTable filterableTable)
-
createProjectableFilterable
private static TableScanNode createProjectableFilterable(Compiler compiler, TableScan rel, com.google.common.collect.ImmutableList<RexNode> filters, ImmutableIntList projects, ProjectableFilterableTable pfTable)
-
createEnumerable
private static TableScanNode createEnumerable(Compiler compiler, TableScan rel, Enumerable<Row> enumerable, ImmutableIntList acceptedProjects, java.util.List<RexNode> rejectedFilters, ImmutableIntList rejectedProjects)
-
-