public interface ProjectableFilterableTable extends Table
If you wish to write a table that can apply projects but not filters, simply decline all filters.
|Modifier and Type||Method and Description|
Returns an enumerable over the rows in this Table.
Enumerable<java.lang.Object> scan(DataContext root, java.util.List<RexNode> filters, int projects)
Each row is represented as an array of its column values.
The list of filters is mutable. If the table can implement a particular filter, it should remove that filter from the list. If it cannot implement a filter, it should leave it in the list. Any filters remaining will be implemented by the consuming Calcite operator.
The projects are zero-based.
root- Execution context
filters- Mutable list of filters. The method should keep in the list any filters that it cannot apply.
projects- List of projects. Each is the 0-based ordinal of the column to project.
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.