Package org.apache.calcite.model
Class JsonJdbcSchema
java.lang.Object
org.apache.calcite.model.JsonSchema
org.apache.calcite.model.JsonJdbcSchema
JSON object representing a schema that maps to a JDBC database.
Like the base class JsonSchema
,
occurs within JsonRoot.schemas
.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.model.JsonSchema
JsonSchema.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Nullable String
Name of the initial catalog in the JDBC data source.final @Nullable String
The name of the JDBC driver class.final @Nullable String
JDBC connect string, for example "jdbc:mysql://localhost/foodmart".final @Nullable String
Name of the initial schema in the JDBC data source.final String
JDBC connect string, for example "jdbc:mysql://localhost/foodmart".final @Nullable String
JDBC user name.final @Nullable String
The FQN of theSqlDialectFactory
implementation.Fields inherited from class org.apache.calcite.model.JsonSchema
autoLattice, cache, lattices, materializations, name, path
-
Constructor Summary
ConstructorsConstructorDescriptionJsonJdbcSchema
(String name, @Nullable List<Object> path, @Nullable Boolean cache, @Nullable Boolean autoLattice, @Nullable String jdbcDriver, @Nullable String sqlDialectFactory, String jdbcUrl, @Nullable String jdbcUser, @Nullable String jdbcPassword, @Nullable String jdbcCatalog, @Nullable String jdbcSchema) -
Method Summary
Methods inherited from class org.apache.calcite.model.JsonSchema
visitChildren
-
Field Details
-
jdbcDriver
The name of the JDBC driver class.Optional. If not specified, uses whichever class the JDBC
DriverManager
chooses. -
sqlDialectFactory
The FQN of theSqlDialectFactory
implementation.Optional. If not specified, uses whichever class the JDBC
DriverManager
chooses. -
jdbcUrl
JDBC connect string, for example "jdbc:mysql://localhost/foodmart". -
jdbcUser
JDBC user name.Optional.
-
jdbcPassword
JDBC connect string, for example "jdbc:mysql://localhost/foodmart".Optional.
-
jdbcCatalog
Name of the initial catalog in the JDBC data source.Optional.
-
jdbcSchema
Name of the initial schema in the JDBC data source.Optional.
-
-
Constructor Details
-
JsonJdbcSchema
public JsonJdbcSchema(String name, @Nullable List<Object> path, @Nullable Boolean cache, @Nullable Boolean autoLattice, @Nullable String jdbcDriver, @Nullable String sqlDialectFactory, String jdbcUrl, @Nullable String jdbcUser, @Nullable String jdbcPassword, @Nullable String jdbcCatalog, @Nullable String jdbcSchema)
-
-
Method Details
-
accept
- Specified by:
accept
in classJsonSchema
-