public abstract class ConnectionFactories extends Object
ConnectionFactory and
CalciteAssert.ConnectionPostProcessor.| 限定符和类型 | 方法和说明 |
|---|---|
static CalciteAssert.ConnectionPostProcessor |
add(CalciteAssert.SchemaSpec schemaSpec)
Returns a post-processor that adds a
CalciteAssert.SchemaSpec
(set of schemes) to a connection. |
static CalciteAssert.ConnectionPostProcessor |
add(String name,
org.apache.calcite.schema.Schema schema)
Returns a post-processor that adds
Schema and sets it as
default. |
static CalciteAssert.ConnectionPostProcessor |
addType(String name,
org.apache.calcite.rel.type.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.
|
static CalciteAssert.ConnectionPostProcessor |
setDefault(String schema)
Returns a post-processor that sets a default schema name.
|
public static ConnectionFactory empty()
public static ConnectionFactory pool(ConnectionFactory connectionFactory)
public static CalciteAssert.ConnectionPostProcessor add(CalciteAssert.SchemaSpec schemaSpec)
CalciteAssert.SchemaSpec
(set of schemes) to a connection.public static CalciteAssert.ConnectionPostProcessor add(String name, org.apache.calcite.schema.Schema schema)
Schema and sets it as
default.public static CalciteAssert.ConnectionPostProcessor setDefault(String schema)
public static CalciteAssert.ConnectionPostProcessor addType(String name, org.apache.calcite.rel.type.RelProtoDataType protoDataType)
Copyright © 2012-2023 Apache Software Foundation. All Rights Reserved.