Enum CalciteAssert.Config

java.lang.Object
java.lang.Enum<CalciteAssert.Config>
org.apache.calcite.test.CalciteAssert.Config
All Implemented Interfaces:
Serializable, Comparable<CalciteAssert.Config>, Constable
Enclosing class:
CalciteAssert

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

    • EMPTY

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

      public static final CalciteAssert.Config REGULAR
      Configuration that creates a connection with two in-memory data sets: HrSchema and FoodmartSchema.
    • 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.
    • SPARK

      public static final CalciteAssert.Config SPARK
      Configuration that loads Spark.
    • AUX

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

    • values

      public static CalciteAssert.Config[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CalciteAssert.Config valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null