|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.spi.impl.JdbcDialectImpl
mondrian.spi.impl.PostgreSqlDialect
mondrian.spi.impl.GreenplumDialect
public class GreenplumDialect
Implementation of Dialect for the GreenplumSQL database.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface mondrian.spi.Dialect |
|---|
Dialect.DatabaseProduct, Dialect.Datatype |
| Field Summary | |
|---|---|
static JdbcDialectFactory |
FACTORY
|
| Fields inherited from class mondrian.spi.impl.JdbcDialectImpl |
|---|
databaseProduct, permitsSelectNotInGroupBy, productVersion |
| Constructor Summary | |
|---|---|
GreenplumDialect(Connection connection)
Creates a GreenplumDialect. |
|
| Method Summary | |
|---|---|
boolean |
allowsCountDistinct()
Returns whether this Dialect supports distinct aggregations. |
boolean |
allowsFromQuery()
Returns whether this Dialect allows a subquery in the from clause, for example SELECT * FROM (SELECT * FROM t) AS
x |
boolean |
allowsRegularExpressionInWhereClause()
Informs Mondrian if the dialect supports regular expressions when creating the 'where' or the 'having' clause. |
String |
generateCountExpression(String exp)
Some databases, like Greenplum, don't include nulls as part of the results of a COUNT sql call. |
Dialect.DatabaseProduct |
getDatabaseProduct()
Returns the database for this Dialect, or Dialect.DatabaseProduct.UNKNOWN if the database is
not a common database. |
boolean |
requiresAliasForFromQuery()
Returns whether this Dialect requires subqueries in the FROM clause to have an alias. |
boolean |
requiresGroupByAlias()
Returns true if this Dialect can include expressions in the GROUP BY clause only by adding an expression to the SELECT clause and using its alias. |
boolean |
supportsGroupingSets()
Returns whether this Dialect allows the GROUPING SETS construct in the GROUP BY clause. |
| Methods inherited from class mondrian.spi.impl.PostgreSqlDialect |
|---|
generateOrderByNulls, generateRegularExpression, isGreenplum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final JdbcDialectFactory FACTORY
| Constructor Detail |
|---|
public GreenplumDialect(Connection connection)
throws SQLException
connection - Connection
SQLException| Method Detail |
|---|
public boolean supportsGroupingSets()
Dialect
supportsGroupingSets in interface DialectsupportsGroupingSets in class JdbcDialectImplpublic boolean requiresGroupByAlias()
DialectFor example, in such a dialect,
SELECT x, x FROM t GROUP BY x
would be illegal, but
SELECT x AS a, x AS b FROM t ORDER BY a, b
would be legal.
Infobright is the only such dialect.
requiresGroupByAlias in interface DialectrequiresGroupByAlias in class JdbcDialectImplpublic boolean requiresAliasForFromQuery()
Dialect
requiresAliasForFromQuery in interface DialectrequiresAliasForFromQuery in class PostgreSqlDialectDialect.allowsFromQuery()public boolean allowsCountDistinct()
DialectFor example, Access does not allow
select count(distinct x) from t
allowsCountDistinct in interface DialectallowsCountDistinct in class JdbcDialectImplpublic boolean allowsFromQuery()
DialectSELECT * FROM (SELECT * FROM t) AS
x
allowsFromQuery in interface DialectallowsFromQuery in class JdbcDialectImplDialect.requiresAliasForFromQuery()public Dialect.DatabaseProduct getDatabaseProduct()
DialectDialect.DatabaseProduct.UNKNOWN if the database is
not a common database.
getDatabaseProduct in interface DialectgetDatabaseProduct in class PostgreSqlDialectpublic String generateCountExpression(String exp)
Dialect
generateCountExpression in interface DialectgenerateCountExpression in class JdbcDialectImplexp - The expression to wrap.
public boolean allowsRegularExpressionInWhereClause()
Dialect
allowsRegularExpressionInWhereClause in interface DialectallowsRegularExpressionInWhereClause in class PostgreSqlDialect
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||