Package org.apache.calcite.test
Enum CalciteAssert.Config
- java.lang.Object
-
- java.lang.Enum<CalciteAssert.Config>
-
- org.apache.calcite.test.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
andJdbcTest.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.
-
-
-
Enum Constant Detail
-
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:JdbcTest.HrSchema
andJdbcTest.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 asExtendedEnumerable.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 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 namejava.lang.NullPointerException
- if the argument is null
-
-