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 |
BUILT_IN_OPERATORS_LIST, 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,
java.util.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, configureParser, create, defaultNullDirection, emptyContext, emulateJoinTypeForCrossJoin, emulateNullDirectionWithIsNull, getCalendarPolicy, getCastSpec, getConformance, getDatabaseProduct, getNullCollation, getProduct, getQuotedCasing, getQuoting, getTypeSystem, getUnquotedCasing, hasImplicitTableAlias, isCaseSensitive, quoteIdentifier, quoteIdentifier, quoteIdentifier, quoteStringLiteral, quoteStringLiteralUnicode, quoteTimestampLiteral, requiresAliasForFromItems, rewriteSingleValueExpr, supportsAliasedValues, supportsGroupByWithCube, supportsGroupByWithRollup, supportsWindowFunctions, unparseCall, unparseDateTimeLiteral, unparseFetchUsingAnsi, unparseFetchUsingLimit, unparseOffsetFetch, unparseSqlDatetimeArithmetic, unparseSqlIntervalLiteral, unparseSqlIntervalQualifier, unquoteStringLiteral
private final JethroDataSqlDialect.JethroInfo info
public JethroDataSqlDialect(SqlDialect.Context context)
public boolean supportsCharSet()
SqlDialect
VARCHAR(30) CHARACTER SET `ISO-8859-1`
.supportsCharSet
in class SqlDialect
public SqlNode emulateNullDirection(SqlNode node, boolean nullsFirst, boolean desc)
SqlDialect
null
if no emulation needs to be done.emulateNullDirection
in class SqlDialect
node
- The SqlNode representing the expressionnullsFirst
- Whether nulls should come firstdesc
- Whether the sort direction is
RelFieldCollation.Direction.DESCENDING
or
RelFieldCollation.Direction.STRICTLY_DESCENDING
null
if not requiredpublic boolean supportsAggregateFunction(SqlKind kind)
supportsAggregateFunction
in class SqlDialect
public boolean supportsFunction(SqlOperator operator, RelDataType type, java.util.List<RelDataType> paramTypes)
SqlDialect
supportsFunction
in class SqlDialect
public boolean supportsOffsetFetch()
SqlDialect
OFFSET 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 SqlDialect
public boolean supportsNestedAggregations()
SqlDialect
SELECT SUM(SUM(1))
.supportsNestedAggregations
in class SqlDialect
public static JethroDataSqlDialect.JethroInfoCache createCache()
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.