Class RangeTable

  • All Implemented Interfaces:
    org.apache.calcite.schema.QueryableTable, org.apache.calcite.schema.Table, org.apache.calcite.schema.Wrapper

    public class RangeTable
    Table that returns a range of integers.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RangeTable.Factory
      Implementation of TableFactory that allows a RangeTable to be included as a custom table in a Calcite model file.
    • Field Summary

      Modifier and Type Field Description
      private java.lang.String columnName  
      private int end  
      private int start  
      • Fields inherited from class

    • Constructor Summary

      Modifier Constructor Description
      protected RangeTable​(java.lang.Class<?> elementType, java.lang.String columnName, int start, int end)  
    • Method Summary

      All Methods Static 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)  
      static RangeTable create​(java.lang.Class<?> elementType, java.lang.String columnName, int start, int end)
      Creates a RangeTable.
      org.apache.calcite.linq4j.Enumerator<java.lang.Integer> enumerator()  
      org.apache.calcite.rel.type.RelDataType getRowType​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)  
      • Methods inherited from class

        getElementType, getExpression
      • Methods inherited from class org.apache.calcite.schema.impl.AbstractTable

        getJdbcTableType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg, unwrap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.calcite.schema.Table

        getJdbcTableType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg
    • Field Detail

      • columnName

        private final java.lang.String columnName
      • start

        private final int start
      • end

        private final int end
    • Constructor Detail

      • RangeTable

        protected RangeTable​(java.lang.Class<?> elementType,
                             java.lang.String columnName,
                             int start,
                             int end)
    • Method Detail

      • create

        public static RangeTable create​(java.lang.Class<?> elementType,
                                        java.lang.String columnName,
                                        int start,
                                        int end)
        Creates a RangeTable.
      • getRowType

        public org.apache.calcite.rel.type.RelDataType getRowType​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
      • 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)
      • enumerator

        public org.apache.calcite.linq4j.Enumerator<java.lang.Integer> enumerator()