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 StringName of the initial catalog in the JDBC data source.final @Nullable StringThe name of the JDBC driver class.final @Nullable StringJDBC connect string, for example "jdbc:mysql://localhost/foodmart".final @Nullable StringName of the initial schema in the JDBC data source.final StringJDBC connect string, for example "jdbc:mysql://localhost/foodmart".final @Nullable StringJDBC user name.final @Nullable StringThe FQN of theSqlDialectFactoryimplementation.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
DriverManagerchooses. -
sqlDialectFactory
The FQN of theSqlDialectFactoryimplementation.Optional. If not specified, uses whichever class the JDBC
DriverManagerchooses. -
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:
acceptin classJsonSchema
-