public class OLAPTable
extends org.apache.calcite.adapter.java.AbstractQueryableTable
implements org.apache.calcite.schema.TranslatableTable
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
OLAPTable(OLAPSchema schema,
org.apache.kylin.metadata.model.TableDesc tableDesc,
boolean exposeMore) |
| 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) |
static org.apache.calcite.rel.type.RelDataType |
createSqlType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
org.apache.kylin.metadata.datatype.DataType dataType,
boolean isNullable) |
org.apache.calcite.linq4j.Enumerable<Object[]> |
executeHiveQuery(org.apache.calcite.DataContext optiqContext,
int ctxSeq) |
org.apache.calcite.linq4j.Enumerable<Object[]> |
executeLookupTableQuery(org.apache.calcite.DataContext optiqContext,
int ctxSeq) |
org.apache.calcite.linq4j.Enumerable<Object[]> |
executeOLAPQuery(org.apache.calcite.DataContext optiqContext,
int ctxSeq) |
org.apache.calcite.rel.type.RelDataType |
getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) |
OLAPSchema |
getSchema() |
List<org.apache.kylin.metadata.model.ColumnDesc> |
getSourceColumns() |
org.apache.kylin.metadata.model.TableDesc |
getSourceTable() |
org.apache.calcite.schema.Statistic |
getStatistic() |
String |
getTableName() |
org.apache.calcite.rel.RelNode |
toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context,
org.apache.calcite.plan.RelOptTable relOptTable) |
String |
toString() |
getElementType, getExpressionpublic OLAPTable(OLAPSchema schema, org.apache.kylin.metadata.model.TableDesc tableDesc, boolean exposeMore)
public OLAPSchema getSchema()
public org.apache.kylin.metadata.model.TableDesc getSourceTable()
public String getTableName()
public List<org.apache.kylin.metadata.model.ColumnDesc> getSourceColumns()
public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
getRowType in interface org.apache.calcite.schema.Tablepublic static org.apache.calcite.rel.type.RelDataType createSqlType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
org.apache.kylin.metadata.datatype.DataType dataType,
boolean isNullable)
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.schema.Statistic getStatistic()
getStatistic in interface org.apache.calcite.schema.TablegetStatistic in class org.apache.calcite.schema.impl.AbstractTablepublic org.apache.calcite.linq4j.Enumerable<Object[]> executeOLAPQuery(org.apache.calcite.DataContext optiqContext, int ctxSeq)
public org.apache.calcite.linq4j.Enumerable<Object[]> executeLookupTableQuery(org.apache.calcite.DataContext optiqContext, int ctxSeq)
public org.apache.calcite.linq4j.Enumerable<Object[]> executeHiveQuery(org.apache.calcite.DataContext optiqContext, int ctxSeq)
Copyright © 2014–2017 Apache Software Foundation. All rights reserved.