| Package | Description |
|---|---|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| org.apache.calcite.sql.pretty |
Provides a pretty-printer for SQL statements.
|
| org.apache.calcite.sql.util |
Utility classes for the SQL object model, parsing, and validation.
|
| Modifier and Type | Field and Description |
|---|---|
SqlDialect |
JdbcSchema.dialect |
SqlDialect |
JdbcConvention.dialect |
| Modifier and Type | Method and Description |
|---|---|
static SqlDialect |
JdbcSchema.createDialect(DataSource dataSource)
Returns a suitable SQL dialect for the given data source.
|
| Modifier and Type | Method and Description |
|---|---|
static JdbcConvention |
JdbcConvention.of(SqlDialect dialect,
Expression expression,
String name) |
| Constructor and Description |
|---|
JdbcConvention(SqlDialect dialect,
Expression expression,
String name) |
JdbcImplementor(SqlDialect dialect,
JavaTypeFactory typeFactory) |
JdbcSchema(DataSource dataSource,
SqlDialect dialect,
JdbcConvention convention,
String catalog,
String schema)
Creates a JDBC schema.
|
| Modifier and Type | Field and Description |
|---|---|
static SqlDialect |
SqlDialect.CALCITE
A dialect useful for generating SQL which can be parsed by the
Calcite parser, in particular quoting literals and identifiers.
|
static SqlDialect |
SqlDialect.DUMMY
A dialect useful for generating generic SQL.
|
| Modifier and Type | Method and Description |
|---|---|
static SqlDialect |
SqlDialect.create(DatabaseMetaData databaseMetaData)
Creates a
SqlDialect from a DatabaseMetaData. |
SqlDialect |
SqlDialect.DatabaseProduct.getDialect()
Returns a dummy dialect for this database.
|
SqlDialect |
SqlWriter.getDialect()
Returns the dialect of SQL.
|
| Modifier and Type | Method and Description |
|---|---|
SqlString |
SqlNode.toSqlString(SqlDialect dialect) |
SqlString |
SqlNode.toSqlString(SqlDialect dialect,
boolean forceParens)
Returns the SQL text of the tree of which this
SqlNode is
the root. |
| Modifier and Type | Method and Description |
|---|---|
SqlDialect |
SqlPrettyWriter.getDialect() |
| Constructor and Description |
|---|
SqlPrettyWriter(SqlDialect dialect) |
SqlPrettyWriter(SqlDialect dialect,
boolean alwaysUseParentheses) |
SqlPrettyWriter(SqlDialect dialect,
boolean alwaysUseParentheses,
PrintWriter pw) |
| Modifier and Type | Method and Description |
|---|---|
SqlDialect |
SqlString.getDialect()
Returns the dialect.
|
SqlDialect |
SqlBuilder.getDialect()
Returns the dialect.
|
| Constructor and Description |
|---|
SqlBuilder(SqlDialect dialect)
Creates a SqlBuilder.
|
SqlBuilder(SqlDialect dialect,
String s)
Creates a SqlBuilder with a given string.
|
SqlString(SqlDialect dialect,
String s)
Creates a SqlString.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.