public enum MainCapability extends Enum<MainCapability>
| Enum Constant and Description |
|---|
AGGREGATE_GROUP_BY_COLUMN
Support aggregations with a group by clause consisting of columns.
|
AGGREGATE_GROUP_BY_EXPRESSION
Support aggregations with a group by clause that contains expressions.
|
AGGREGATE_GROUP_BY_TUPLE
Support aggregations with a group by clause with multiple group by
columns or expressions.
|
AGGREGATE_HAVING
Support aggregations with a having clause.
|
AGGREGATE_SINGLE_GROUP
Support aggregations with a single group.
|
FILTER_EXPRESSIONS
Support filter expressions.
|
LIMIT
Support to limit the number of result rows.
|
LIMIT_WITH_OFFSET
Support to limit the number of result rows including an offset.
|
ORDER_BY_COLUMN
Support to order the result by columns.
|
ORDER_BY_EXPRESSION
Support to order the result by expressions.
|
SELECTLIST_EXPRESSIONS
Support expressions in the select list;
Additional capabilities are required depending on the expression.
|
SELECTLIST_PROJECTION
Support projections, i.e.
|
| Modifier and Type | Method and Description |
|---|---|
static MainCapability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MainCapability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MainCapability SELECTLIST_PROJECTION
Example: SELECT a FROM t;
public static final MainCapability SELECTLIST_EXPRESSIONS
Example: SELECT a+1, ucase(b) FROM t;
public static final MainCapability FILTER_EXPRESSIONS
Example: SELECT * FROM t WHERE a>2
public static final MainCapability AGGREGATE_SINGLE_GROUP
Example: SELECT min(a) FROM t;
public static final MainCapability AGGREGATE_GROUP_BY_COLUMN
Example: SELECT a, b, min(c) FROM t GROUP BY a, b;
public static final MainCapability AGGREGATE_GROUP_BY_EXPRESSION
Example: SELECT a+1, min(b) FROM t GROUP BY a+1;
public static final MainCapability AGGREGATE_GROUP_BY_TUPLE
Example: SELECT a, b, min(c) FROM t GROUP BY a, b;
public static final MainCapability AGGREGATE_HAVING
Example: SELECT a, min(b) FROM t GROUP BY a HAVING min(b)>10;
public static final MainCapability ORDER_BY_COLUMN
Attention: This includes the capability to specify NULLS FIRST/LAST and ASC/DESC.
Example: SELECT a, b FROM t ORDER BY a, b DESC NULLS FIRST;
public static final MainCapability ORDER_BY_EXPRESSION
Attention: This includes the capability to specify NULLS FIRST/LAST and ASC/DESC
Example: SELECT a FROM t ORDER BY abs(a) ASC NULLS LAST;
public static final MainCapability LIMIT
Example: SELECT * FROM t 0
public static final MainCapability LIMIT_WITH_OFFSET
Example: SELECT * FROM t LIMIT 100 OFFSET 10;
public static MainCapability[] values()
for (MainCapability c : MainCapability.values()) System.out.println(c);
public static MainCapability valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2019. All rights reserved.