Class InterpreterTest.MyDataContext

  • All Implemented Interfaces:
    org.apache.calcite.DataContext
    Enclosing class:
    InterpreterTest

    private class InterpreterTest.MyDataContext
    extends java.lang.Object
    implements org.apache.calcite.DataContext
    Implementation of DataContext for executing queries without a connection.
    • Nested Class Summary

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

        org.apache.calcite.DataContext.Variable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.calcite.tools.Planner planner  
      • Fields inherited from interface org.apache.calcite.DataContext

        ROOT
    • Constructor Summary

      Constructors 
      Constructor Description
      MyDataContext​(org.apache.calcite.tools.Planner planner)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.String name)  
      org.apache.calcite.linq4j.QueryProvider getQueryProvider()  
      org.apache.calcite.schema.SchemaPlus getRootSchema()  
      org.apache.calcite.adapter.java.JavaTypeFactory getTypeFactory()  
      • Methods inherited from class java.lang.Object

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

      • planner

        private final org.apache.calcite.tools.Planner planner
    • Constructor Detail

      • MyDataContext

        MyDataContext​(org.apache.calcite.tools.Planner planner)
    • Method Detail

      • getRootSchema

        public org.apache.calcite.schema.SchemaPlus getRootSchema()
        Specified by:
        getRootSchema in interface org.apache.calcite.DataContext
      • getTypeFactory

        public org.apache.calcite.adapter.java.JavaTypeFactory getTypeFactory()
        Specified by:
        getTypeFactory in interface org.apache.calcite.DataContext
      • getQueryProvider

        public org.apache.calcite.linq4j.QueryProvider getQueryProvider()
        Specified by:
        getQueryProvider in interface org.apache.calcite.DataContext
      • get

        public java.lang.Object get​(java.lang.String name)
        Specified by:
        get in interface org.apache.calcite.DataContext