Class MockCatalogReader.MockTable

    • Field Detail

      • stream

        protected final boolean stream
      • rowCount

        protected final double rowCount
      • columnList

        protected final java.util.List<java.util.Map.Entry<java.lang.String,​org.apache.calcite.rel.type.RelDataType>> columnList
      • keyList

        protected final java.util.List<java.lang.Integer> keyList
      • referentialConstraints

        protected final java.util.List<org.apache.calcite.rel.RelReferentialConstraint> referentialConstraints
      • rowType

        protected org.apache.calcite.rel.type.RelDataType rowType
      • collationList

        protected java.util.List<org.apache.calcite.rel.RelCollation> collationList
      • names

        protected final java.util.List<java.lang.String> names
      • monotonicColumnSet

        protected final java.util.Set<java.lang.String> monotonicColumnSet
      • kind

        protected org.apache.calcite.rel.type.StructKind kind
      • temporal

        private final boolean temporal
      • initializerFactory

        protected final org.apache.calcite.sql2rel.InitializerExpressionFactory initializerFactory
      • rolledUpColumns

        protected final java.util.Set<java.lang.String> rolledUpColumns
    • Constructor Detail

      • MockTable

        public MockTable​(MockCatalogReader catalogReader,
                         java.lang.String catalogName,
                         java.lang.String schemaName,
                         java.lang.String name,
                         boolean stream,
                         boolean temporal,
                         double rowCount,
                         MockCatalogReader.ColumnResolver resolver,
                         org.apache.calcite.sql2rel.InitializerExpressionFactory initializerFactory)
      • MockTable

        private MockTable​(MockCatalogReader catalogReader,
                          java.util.List<java.lang.String> names,
                          boolean stream,
                          boolean temporal,
                          double rowCount,
                          MockCatalogReader.ColumnResolver resolver,
                          org.apache.calcite.sql2rel.InitializerExpressionFactory initializerFactory)
      • MockTable

        protected MockTable​(MockCatalogReader catalogReader,
                            boolean stream,
                            boolean temporal,
                            double rowCount,
                            java.util.List<java.util.Map.Entry<java.lang.String,​org.apache.calcite.rel.type.RelDataType>> columnList,
                            java.util.List<java.lang.Integer> keyList,
                            org.apache.calcite.rel.type.RelDataType rowType,
                            java.util.List<org.apache.calcite.rel.RelCollation> collationList,
                            java.util.List<java.lang.String> names,
                            java.util.Set<java.lang.String> monotonicColumnSet,
                            org.apache.calcite.rel.type.StructKind kind,
                            MockCatalogReader.ColumnResolver resolver,
                            org.apache.calcite.sql2rel.InitializerExpressionFactory initializerFactory)
        Copy constructor.
    • Method Detail

      • registerRolledUpColumn

        public void registerRolledUpColumn​(java.lang.String columnName)
      • extend

        protected org.apache.calcite.plan.RelOptTable extend​(org.apache.calcite.schema.Table extendedTable)
        Specified by:
        extend in class org.apache.calcite.prepare.Prepare.AbstractPreparingTable
      • unwrap

        public <T> T unwrap​(java.lang.Class<T> clazz)
      • getRowCount

        public double getRowCount()
      • getRelOptSchema

        public org.apache.calcite.plan.RelOptSchema getRelOptSchema()
      • toRel

        public org.apache.calcite.rel.RelNode toRel​(org.apache.calcite.plan.RelOptTable.ToRelContext context)
      • getCollationList

        public java.util.List<org.apache.calcite.rel.RelCollation> getCollationList()
      • getDistribution

        public org.apache.calcite.rel.RelDistribution getDistribution()
      • isKey

        public boolean isKey​(org.apache.calcite.util.ImmutableBitSet columns)
      • getReferentialConstraints

        public java.util.List<org.apache.calcite.rel.RelReferentialConstraint> getReferentialConstraints()
      • getRowType

        public org.apache.calcite.rel.type.RelDataType getRowType()
      • supportsModality

        public boolean supportsModality​(org.apache.calcite.sql.validate.SqlModality modality)
      • isTemporal

        public boolean isTemporal()
      • onRegister

        public void onRegister​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
      • getQualifiedName

        public java.util.List<java.lang.String> getQualifiedName()
      • getMonotonicity

        public org.apache.calcite.sql.validate.SqlMonotonicity getMonotonicity​(java.lang.String columnName)
      • getAllowedAccess

        public org.apache.calcite.sql.SqlAccessType getAllowedAccess()
      • getExpression

        public org.apache.calcite.linq4j.tree.Expression getExpression​(java.lang.Class clazz)
      • addColumn

        public void addColumn​(java.lang.String name,
                              org.apache.calcite.rel.type.RelDataType type)
      • addColumn

        public void addColumn​(java.lang.String name,
                              org.apache.calcite.rel.type.RelDataType type,
                              boolean isKey)
      • addMonotonic

        public void addMonotonic​(java.lang.String name)
      • setKind

        public void setKind​(org.apache.calcite.rel.type.StructKind kind)
      • getKind

        public org.apache.calcite.rel.type.StructKind getKind()