public class JdbcTable
extends org.apache.calcite.adapter.java.AbstractQueryableTable
implements org.apache.calcite.schema.TranslatableTable, org.apache.calcite.schema.ScannableTable, org.apache.calcite.schema.ModifiableTable
The idea is not to read the whole table, however. The idea is to use
this as a building block for a query, by applying Queryable operators
such as
ExtendedEnumerable.where(org.apache.calcite.linq4j.function.Predicate2).
The resulting queryable can then be converted to a SQL query, which can be
executed efficiently on the JDBC server.
| Modifier and Type | Field and Description |
|---|---|
String |
jdbcCatalogName |
JdbcSchema |
jdbcSchema |
String |
jdbcSchemaName |
String |
jdbcTableName |
org.apache.calcite.schema.Schema.TableType |
jdbcTableType |
| Modifier and Type | Method and Description |
|---|---|
<T> org.apache.calcite.linq4j.Queryable<T> |
asQueryable(org.apache.calcite.linq4j.QueryProvider queryProvider,
org.apache.calcite.schema.SchemaPlus schema,
String tableName) |
org.apache.calcite.schema.Schema.TableType |
getJdbcTableType() |
@Nullable Collection |
getModifiableCollection() |
org.apache.calcite.rel.type.RelDataType |
getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) |
org.apache.calcite.linq4j.Enumerable<Object[]> |
scan(org.apache.calcite.DataContext root) |
org.apache.calcite.sql.SqlIdentifier |
tableName()
Returns the table name, qualified with catalog and schema name if
applicable, as a parse tree node (
SqlIdentifier). |
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 input,
org.apache.calcite.rel.core.TableModify.Operation operation,
@Nullable List<String> updateColumnList,
@Nullable List<org.apache.calcite.rex.RexNode> sourceExpressionList,
boolean flattened) |
org.apache.calcite.rel.RelNode |
toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context,
org.apache.calcite.plan.RelOptTable relOptTable) |
String |
toString() |
<C> C |
unwrap(Class<C> aClass) |
getElementType, getExpressiongetStatistic, isRolledUp, rolledUpColumnValidInsideAggclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementType, getExpressionpublic final JdbcSchema jdbcSchema
public final String jdbcCatalogName
public final String jdbcSchemaName
public final String jdbcTableName
public final org.apache.calcite.schema.Schema.TableType jdbcTableType
public org.apache.calcite.schema.Schema.TableType getJdbcTableType()
getJdbcTableType in interface org.apache.calcite.schema.TablegetJdbcTableType in class org.apache.calcite.schema.impl.AbstractTablepublic <C> C unwrap(Class<C> aClass)
unwrap in interface org.apache.calcite.schema.Wrapperunwrap in class org.apache.calcite.schema.impl.AbstractTablepublic org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
getRowType in interface org.apache.calcite.schema.Tablepublic org.apache.calcite.sql.SqlIdentifier tableName()
SqlIdentifier).public org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context,
org.apache.calcite.plan.RelOptTable relOptTable)
toRel in interface org.apache.calcite.schema.TranslatableTablepublic <T> org.apache.calcite.linq4j.Queryable<T> asQueryable(org.apache.calcite.linq4j.QueryProvider queryProvider,
org.apache.calcite.schema.SchemaPlus schema,
String tableName)
asQueryable in interface org.apache.calcite.schema.QueryableTablepublic org.apache.calcite.linq4j.Enumerable<Object[]> scan(org.apache.calcite.DataContext root)
scan in interface org.apache.calcite.schema.ScannableTablepublic @Nullable Collection getModifiableCollection()
getModifiableCollection in interface org.apache.calcite.schema.ModifiableTablepublic 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 input,
org.apache.calcite.rel.core.TableModify.Operation operation,
@Nullable List<String> updateColumnList,
@Nullable List<org.apache.calcite.rex.RexNode> sourceExpressionList,
boolean flattened)
toModificationRel in interface org.apache.calcite.schema.ModifiableTableCopyright © 2020–2023 The Apache Software Foundation. All rights reserved.