Class SqlToRelTestBase.MockRelOptSchema.MockColumnSet

  • All Implemented Interfaces:
    org.apache.calcite.plan.RelOptTable, org.apache.calcite.schema.Wrapper
    Enclosing class:
    SqlToRelTestBase.MockRelOptSchema

    protected class SqlToRelTestBase.MockRelOptSchema.MockColumnSet
    extends java.lang.Object
    implements org.apache.calcite.plan.RelOptTable
    Mock column set.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.calcite.plan.RelOptTable

        org.apache.calcite.plan.RelOptTable.ToRelContext, org.apache.calcite.plan.RelOptTable.ViewExpander
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<org.apache.calcite.rel.RelCollation> collationList  
      private java.util.List<java.lang.String> names  
      private org.apache.calcite.rel.type.RelDataType rowType  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MockColumnSet​(java.util.List<java.lang.String> names, org.apache.calcite.rel.type.RelDataType rowType, java.util.List<org.apache.calcite.rel.RelCollation> collationList)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.calcite.plan.RelOptTable extend​(java.util.List<org.apache.calcite.rel.type.RelDataTypeField> extendedFields)  
      java.util.List<org.apache.calcite.rel.RelCollation> getCollationList()  
      java.util.List<org.apache.calcite.schema.ColumnStrategy> getColumnStrategies()  
      org.apache.calcite.rel.RelDistribution getDistribution()  
      org.apache.calcite.linq4j.tree.Expression getExpression​(java.lang.Class clazz)  
      java.util.List<java.lang.String> getQualifiedName()  
      java.util.List<org.apache.calcite.rel.RelReferentialConstraint> getReferentialConstraints()  
      org.apache.calcite.plan.RelOptSchema getRelOptSchema()  
      double getRowCount()  
      org.apache.calcite.rel.type.RelDataType getRowType()  
      boolean isKey​(org.apache.calcite.util.ImmutableBitSet columns)  
      org.apache.calcite.rel.RelNode toRel​(org.apache.calcite.plan.RelOptTable.ToRelContext context)  
      <T> T unwrap​(java.lang.Class<T> clazz)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • names

        private final java.util.List<java.lang.String> names
      • rowType

        private final org.apache.calcite.rel.type.RelDataType rowType
      • collationList

        private final java.util.List<org.apache.calcite.rel.RelCollation> collationList
    • Constructor Detail

      • MockColumnSet

        protected MockColumnSet​(java.util.List<java.lang.String> names,
                                org.apache.calcite.rel.type.RelDataType rowType,
                                java.util.List<org.apache.calcite.rel.RelCollation> collationList)
    • Method Detail

      • unwrap

        public <T> T unwrap​(java.lang.Class<T> clazz)
        Specified by:
        unwrap in interface org.apache.calcite.schema.Wrapper
      • getQualifiedName

        public java.util.List<java.lang.String> getQualifiedName()
        Specified by:
        getQualifiedName in interface org.apache.calcite.plan.RelOptTable
      • getRowCount

        public double getRowCount()
        Specified by:
        getRowCount in interface org.apache.calcite.plan.RelOptTable
      • getRowType

        public org.apache.calcite.rel.type.RelDataType getRowType()
        Specified by:
        getRowType in interface org.apache.calcite.plan.RelOptTable
      • getRelOptSchema

        public org.apache.calcite.plan.RelOptSchema getRelOptSchema()
        Specified by:
        getRelOptSchema in interface org.apache.calcite.plan.RelOptTable
      • toRel

        public org.apache.calcite.rel.RelNode toRel​(org.apache.calcite.plan.RelOptTable.ToRelContext context)
        Specified by:
        toRel in interface org.apache.calcite.plan.RelOptTable
      • getCollationList

        public java.util.List<org.apache.calcite.rel.RelCollation> getCollationList()
        Specified by:
        getCollationList in interface org.apache.calcite.plan.RelOptTable
      • getDistribution

        public org.apache.calcite.rel.RelDistribution getDistribution()
        Specified by:
        getDistribution in interface org.apache.calcite.plan.RelOptTable
      • isKey

        public boolean isKey​(org.apache.calcite.util.ImmutableBitSet columns)
        Specified by:
        isKey in interface org.apache.calcite.plan.RelOptTable
      • getReferentialConstraints

        public java.util.List<org.apache.calcite.rel.RelReferentialConstraint> getReferentialConstraints()
        Specified by:
        getReferentialConstraints in interface org.apache.calcite.plan.RelOptTable
      • getColumnStrategies

        public java.util.List<org.apache.calcite.schema.ColumnStrategy> getColumnStrategies()
        Specified by:
        getColumnStrategies in interface org.apache.calcite.plan.RelOptTable
      • getExpression

        public org.apache.calcite.linq4j.tree.Expression getExpression​(java.lang.Class clazz)
        Specified by:
        getExpression in interface org.apache.calcite.plan.RelOptTable
      • extend

        public org.apache.calcite.plan.RelOptTable extend​(java.util.List<org.apache.calcite.rel.type.RelDataTypeField> extendedFields)
        Specified by:
        extend in interface org.apache.calcite.plan.RelOptTable