public class JethroDataSqlDialect extends SqlDialect
SqlDialect implementation for the JethroData database.| Modifier and Type | Class and Description |
|---|---|
static class |
JethroDataSqlDialect.JethroInfo
Information about the capabilities of a Jethro database.
|
static interface |
JethroDataSqlDialect.JethroInfoCache
Stores information about capabilities of Jethro databases.
|
private static class |
JethroDataSqlDialect.JethroInfoCacheImpl
Implementation of
JethroInfoCache. |
(package private) static class |
JethroDataSqlDialect.JethroSupportedFunction
Information about a function supported by Jethro.
|
SqlDialect.CalendarPolicy, SqlDialect.Context, SqlDialect.DatabaseProduct, SqlDialect.FakeUtil| Modifier and Type | Field and Description |
|---|---|
private JethroDataSqlDialect.JethroInfo |
info |
CALCITE, DUMMY, EMPTY_CONTEXT, LOGGER, nullCollation| Constructor and Description |
|---|
JethroDataSqlDialect(SqlDialect.Context context)
Creates a JethroDataSqlDialect.
|
| Modifier and Type | Method and Description |
|---|---|
static JethroDataSqlDialect.JethroInfoCache |
createCache() |
SqlNode |
emulateNullDirection(SqlNode node,
boolean nullsFirst,
boolean desc)
Returns the SqlNode for emulating the null direction for the given field
or
null if no emulation needs to be done. |
boolean |
supportsAggregateFunction(SqlKind kind) |
boolean |
supportsCharSet()
Returns whether the dialect supports character set names as part of a
data type, for instance
VARCHAR(30) CHARACTER SET `ISO-8859-1`. |
boolean |
supportsFunction(SqlOperator operator,
RelDataType type,
List<RelDataType> paramTypes)
Returns whether this dialect supports a given function or operator.
|
boolean |
supportsNestedAggregations()
Returns whether the dialect supports nested aggregations, for instance
SELECT SUM(SUM(1)) . |
boolean |
supportsOffsetFetch()
Returns whether the dialect supports OFFSET/FETCH clauses
introduced by SQL:2008, for instance
OFFSET 10 ROWS FETCH NEXT 20 ROWS ONLY. |
allowsAs, create, defaultNullDirection, emptyContext, emulateNullDirectionWithIsNull, getCalendarPolicy, getCastSpec, getDatabaseProduct, getNullCollation, getProduct, hasImplicitTableAlias, identifierNeedsToBeQuoted, quoteIdentifier, quoteIdentifier, quoteIdentifier, quoteStringLiteral, quoteStringLiteralUnicode, quoteTimestampLiteral, requiresAliasForFromItems, rewriteSingleValueExpr, supportsAliasedValues, unparseCall, unparseDateTimeLiteral, unparseFetchUsingAnsi, unparseFetchUsingLimit, unparseOffsetFetch, unquoteStringLiteralprivate final JethroDataSqlDialect.JethroInfo info
public JethroDataSqlDialect(SqlDialect.Context context)
public boolean supportsCharSet()
SqlDialectVARCHAR(30) CHARACTER SET `ISO-8859-1`.supportsCharSet in class SqlDialectpublic SqlNode emulateNullDirection(SqlNode node, boolean nullsFirst, boolean desc)
SqlDialectnull if no emulation needs to be done.emulateNullDirection in class SqlDialectnode - The SqlNode representing the expressionnullsFirst - Whether nulls should come firstdesc - Whether the sort direction is
RelFieldCollation.Direction.DESCENDING or
RelFieldCollation.Direction.STRICTLY_DESCENDINGnull if not requiredpublic boolean supportsAggregateFunction(SqlKind kind)
supportsAggregateFunction in class SqlDialectpublic boolean supportsFunction(SqlOperator operator, RelDataType type, List<RelDataType> paramTypes)
SqlDialectsupportsFunction in class SqlDialectpublic boolean supportsOffsetFetch()
SqlDialectOFFSET 10 ROWS FETCH NEXT 20 ROWS ONLY.
If false, we assume that the dialect supports the alternative syntax
LIMIT 20 OFFSET 10.supportsOffsetFetch in class SqlDialectpublic boolean supportsNestedAggregations()
SqlDialectSELECT SUM(SUM(1)) .supportsNestedAggregations in class SqlDialectpublic static JethroDataSqlDialect.JethroInfoCache createCache()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.