public interface ProjectableFilterableTable extends Table
If you wish to write a table that can apply projects but not filters, simply decline all filters.
ScannableTable,
FilterableTable| Modifier and Type | Method and Description |
|---|---|
Enumerable<Object[]> |
scan(DataContext root,
List<RexNode> filters,
int[] projects)
Returns an enumerable over the rows in this Table.
|
getJdbcTableType, getRowType, getStatisticEnumerable<Object[]> scan(DataContext root, 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 contextfilters - Mutable list of filters. The method should remove from the
list any filters that it cannot apply.projects - List of projects. Each is the 0-based ordinal of the column
to project.projects.Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.