Package org.apache.calcite.test
Class ConnectionFactories
java.lang.Object
org.apache.calcite.test.ConnectionFactories
Utilities for
ConnectionFactory
and
CalciteAssert.ConnectionPostProcessor
.-
Method Summary
Modifier and TypeMethodDescriptionReturns a post-processor that addsSchema
and sets it as default.add
(CalciteAssert.SchemaSpec schemaSpec) Returns a post-processor that adds aCalciteAssert.SchemaSpec
(set of schemes) to a connection.addType
(String name, RelProtoDataType protoDataType) Returns a post-processor that adds a type.static ConnectionFactory
empty()
Returns an empty connection factory.static ConnectionFactory
pool
(ConnectionFactory connectionFactory) Creates a connection factory that uses a single pooled connection, as opposed to creating a new connection on each invocation.setDefault
(String schema) Returns a post-processor that sets a default schema name.
-
Method Details
-
empty
Returns an empty connection factory. -
pool
Creates a connection factory that uses a single pooled connection, as opposed to creating a new connection on each invocation. -
add
Returns a post-processor that adds aCalciteAssert.SchemaSpec
(set of schemes) to a connection. -
add
Returns a post-processor that addsSchema
and sets it as default. -
setDefault
Returns a post-processor that sets a default schema name. -
addType
public static CalciteAssert.ConnectionPostProcessor addType(String name, RelProtoDataType protoDataType) Returns a post-processor that adds a type.
-