Package org.apache.calcite.tools
Class FrameworksTest.TableImpl
- java.lang.Object
-
- org.apache.calcite.schema.impl.AbstractTable
-
- org.apache.calcite.tools.FrameworksTest.TableImpl
-
- All Implemented Interfaces:
org.apache.calcite.schema.ModifiableTable
,org.apache.calcite.schema.ProjectableFilterableTable
,org.apache.calcite.schema.QueryableTable
,org.apache.calcite.schema.Table
,org.apache.calcite.schema.Wrapper
- Enclosing class:
- FrameworksTest
private static class FrameworksTest.TableImpl extends org.apache.calcite.schema.impl.AbstractTable implements org.apache.calcite.schema.ModifiableTable, org.apache.calcite.schema.ProjectableFilterableTable
Modifiable, filterable table.
-
-
Constructor Summary
Constructors Constructor Description TableImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> org.apache.calcite.linq4j.Queryable<T>
asQueryable(org.apache.calcite.linq4j.QueryProvider queryProvider, org.apache.calcite.schema.SchemaPlus schema, java.lang.String tableName)
java.lang.reflect.Type
getElementType()
org.apache.calcite.linq4j.tree.Expression
getExpression(org.apache.calcite.schema.SchemaPlus schema, java.lang.String tableName, java.lang.Class clazz)
java.util.Collection
getModifiableCollection()
org.apache.calcite.rel.type.RelDataType
getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
org.apache.calcite.schema.Statistic
getStatistic()
org.apache.calcite.linq4j.Enumerable<java.lang.Object[]>
scan(org.apache.calcite.DataContext root, java.util.List<org.apache.calcite.rex.RexNode> filters, int[] projects)
org.apache.calcite.rel.core.TableModify
toModificationRel(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelOptTable table, org.apache.calcite.prepare.Prepare.CatalogReader catalogReader, org.apache.calcite.rel.RelNode child, org.apache.calcite.rel.core.TableModify.Operation operation, java.util.List<java.lang.String> updateColumnList, java.util.List<org.apache.calcite.rex.RexNode> sourceExpressionList, boolean flattened)
-
Methods inherited from class org.apache.calcite.schema.impl.AbstractTable
getJdbcTableType, isRolledUp, rolledUpColumnValidInsideAgg, unwrap
-
-
-
-
Method Detail
-
getRowType
public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
- Specified by:
getRowType
in interfaceorg.apache.calcite.schema.Table
-
getStatistic
public org.apache.calcite.schema.Statistic getStatistic()
- Specified by:
getStatistic
in interfaceorg.apache.calcite.schema.Table
- Overrides:
getStatistic
in classorg.apache.calcite.schema.impl.AbstractTable
-
scan
public org.apache.calcite.linq4j.Enumerable<java.lang.Object[]> scan(org.apache.calcite.DataContext root, java.util.List<org.apache.calcite.rex.RexNode> filters, int[] projects)
- Specified by:
scan
in interfaceorg.apache.calcite.schema.ProjectableFilterableTable
-
getModifiableCollection
public java.util.Collection getModifiableCollection()
- Specified by:
getModifiableCollection
in interfaceorg.apache.calcite.schema.ModifiableTable
-
toModificationRel
public org.apache.calcite.rel.core.TableModify toModificationRel(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelOptTable table, org.apache.calcite.prepare.Prepare.CatalogReader catalogReader, org.apache.calcite.rel.RelNode child, org.apache.calcite.rel.core.TableModify.Operation operation, java.util.List<java.lang.String> updateColumnList, java.util.List<org.apache.calcite.rex.RexNode> sourceExpressionList, boolean flattened)
- Specified by:
toModificationRel
in interfaceorg.apache.calcite.schema.ModifiableTable
-
asQueryable
public <T> org.apache.calcite.linq4j.Queryable<T> asQueryable(org.apache.calcite.linq4j.QueryProvider queryProvider, org.apache.calcite.schema.SchemaPlus schema, java.lang.String tableName)
- Specified by:
asQueryable
in interfaceorg.apache.calcite.schema.QueryableTable
-
getElementType
public java.lang.reflect.Type getElementType()
- Specified by:
getElementType
in interfaceorg.apache.calcite.schema.QueryableTable
-
getExpression
public org.apache.calcite.linq4j.tree.Expression getExpression(org.apache.calcite.schema.SchemaPlus schema, java.lang.String tableName, java.lang.Class clazz)
- Specified by:
getExpression
in interfaceorg.apache.calcite.schema.QueryableTable
-
-