Class HrClusteredSchema

  • All Implemented Interfaces:
    org.apache.calcite.schema.Schema

    public final class HrClusteredSchema
    extends org.apache.calcite.schema.impl.AbstractSchema
    A typical HR schema with employees (emps) and departments (depts) tables that are naturally ordered based on their primary keys representing clustered tables.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  HrClusteredSchema.PkClusteredTable
      A table sorted (ascending direction and nulls last) on the primary key.
      • Nested classes/interfaces inherited from class org.apache.calcite.schema.impl.AbstractSchema

        org.apache.calcite.schema.impl.AbstractSchema.Factory
      • Nested classes/interfaces inherited from interface org.apache.calcite.schema.Schema

        org.apache.calcite.schema.Schema.TableType
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.google.common.collect.ImmutableMap<java.lang.String,​org.apache.calcite.schema.Table> tables  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Map<java.lang.String,​org.apache.calcite.schema.Table> getTableMap()  
      • Methods inherited from class org.apache.calcite.schema.impl.AbstractSchema

        getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, getType, getTypeMap, getTypeNames, isMutable, snapshot
      • Methods inherited from class java.lang.Object

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

      • tables

        private final com.google.common.collect.ImmutableMap<java.lang.String,​org.apache.calcite.schema.Table> tables
    • Constructor Detail

      • HrClusteredSchema

        public HrClusteredSchema()
    • Method Detail

      • getTableMap

        protected java.util.Map<java.lang.String,​org.apache.calcite.schema.Table> getTableMap()
        Overrides:
        getTableMap in class org.apache.calcite.schema.impl.AbstractSchema