Enum CalciteAssert.Config

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CalciteAssert.Config>
    Enclosing class:
    CalciteAssert

    public static enum CalciteAssert.Config
    extends java.lang.Enum<CalciteAssert.Config>
    Connection configuration. Basically, a set of schemas that should be instantiated in the connection.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUX
      Configuration that loads AUX schema for tests involving view expansions and lateral joins tests.
      EMPTY
      Configuration that creates an empty connection.
      FOODMART_CLONE
      Configuration that contains an in-memory clone of the FoodMart database.
      GEO
      Configuration that contains geo-spatial functions.
      JDBC_FOODMART
      Configuration that creates a connection to a MySQL server.
      JDBC_FOODMART_WITH_LATTICE
      Configuration that contains an in-memory clone of the FoodMart database, plus a lattice to enable on-the-fly materializations.
      JDBC_SCOTT
      Configuration that creates a connection to hsqldb containing the Scott schema via the JDBC adapter.
      LINGUAL
      Configuration that creates a connection with an in-memory data set similar to the smoke test in Cascading Lingual.
      REGULAR
      Configuration that creates a connection with two in-memory data sets: JdbcTest.HrSchema and JdbcTest.FoodmartSchema.
      REGULAR_PLUS_METADATA
      Configuration that includes the metadata schema.
      SCOTT
      Configuration that loads the "scott/tiger" database.
      SPARK
      Configuration that loads Spark.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Config()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CalciteAssert.Config valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CalciteAssert.Config[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • EMPTY

        public static final CalciteAssert.Config EMPTY
        Configuration that creates an empty connection.
      • LINGUAL

        public static final CalciteAssert.Config LINGUAL
        Configuration that creates a connection with an in-memory data set similar to the smoke test in Cascading Lingual.
      • JDBC_FOODMART

        public static final CalciteAssert.Config JDBC_FOODMART
        Configuration that creates a connection to a MySQL server. Tables such as "customer" and "sales_fact_1997" are available. Queries are processed by generating Java that calls linq4j operators such as ExtendedEnumerable.where(org.apache.calcite.linq4j.function.Predicate1).
      • JDBC_SCOTT

        public static final CalciteAssert.Config JDBC_SCOTT
        Configuration that creates a connection to hsqldb containing the Scott schema via the JDBC adapter.
      • FOODMART_CLONE

        public static final CalciteAssert.Config FOODMART_CLONE
        Configuration that contains an in-memory clone of the FoodMart database.
      • GEO

        public static final CalciteAssert.Config GEO
        Configuration that contains geo-spatial functions.
      • JDBC_FOODMART_WITH_LATTICE

        public static final CalciteAssert.Config JDBC_FOODMART_WITH_LATTICE
        Configuration that contains an in-memory clone of the FoodMart database, plus a lattice to enable on-the-fly materializations.
      • REGULAR_PLUS_METADATA

        public static final CalciteAssert.Config REGULAR_PLUS_METADATA
        Configuration that includes the metadata schema.
      • SCOTT

        public static final CalciteAssert.Config SCOTT
        Configuration that loads the "scott/tiger" database.
      • AUX

        public static final CalciteAssert.Config AUX
        Configuration that loads AUX schema for tests involving view expansions and lateral joins tests.
    • Constructor Detail

      • Config

        private Config()
    • Method Detail

      • values

        public static CalciteAssert.Config[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CalciteAssert.Config c : CalciteAssert.Config.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CalciteAssert.Config valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null