Class RexExecutorTest.SingleValueDataContext

  • All Implemented Interfaces:
    org.apache.calcite.DataContext
    Direct Known Subclasses:
    RexExecutorTest.TestDataContext
    Enclosing class:
    RexExecutorTest

    public static class RexExecutorTest.SingleValueDataContext
    extends java.lang.Object
    implements org.apache.calcite.DataContext
    Context that holds a value for a particular context name.
    • 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 java.lang.String name  
      private java.lang.Object value  
      • Fields inherited from interface org.apache.calcite.DataContext

        ROOT
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleValueDataContext​(java.lang.String name, java.lang.Object value)  
    • 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

      • name

        private final java.lang.String name
      • value

        private final java.lang.Object value
    • Constructor Detail

      • SingleValueDataContext

        public SingleValueDataContext​(java.lang.String name,
                                      java.lang.Object value)
    • 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