public enum HintEnum extends Enum<HintEnum>
Enum Constant and Description |
---|
DISABLE_RECLAIM_GROUP
For use with group-by, disabled reclaim groups.
|
DISABLE_UNIQUE_IMPLICIT_IDX
For use everywhere where unique data window are used
|
DISABLE_WHEREEXPR_MOVETO_FILTER
For use everywhere where unique data window are used
|
DISABLE_WINDOW_SUBQUERY_INDEXSHARE
If ENABLE_WINDOW_SUBQUERY_INDEXSHARE is not specified for a named window (the default) then this instruction is ignored.
|
ENABLE_OUTPUTLIMIT_OPT
For use with output rate limiting to enable certain optimization that may however change output.
|
ENABLE_WINDOW_SUBQUERY_INDEXSHARE
For use with create-named-window statements only, to indicate that statements that subquery the named window
use named window data structures (unless the subquery statement specifies below DISBABLE hint and as listed below).
|
EXCLUDE_PLAN
For use where query planning applies.
|
FORCE_NESTED_ITER
For use with join query plans to force a nested iteration plan.
|
INDEX
For use everywhere where indexes are used (subquery, joins, fire-and-forget, onl-select etc.), index hint.
|
ITERATE_ONLY
For use with match_recognize, iterate-only matching.
|
MAX_FILTER_WIDTH
For use when filter expression optimization may widen the filter expression.
|
PREFER_MERGE_JOIN
For use with join query plans to indicate preferance of the merge-join query plan.
|
RECLAIM_GROUP_AGED
For use with group-by and std:groupwin, reclaim groups for unbound streams based on time.
|
RECLAIM_GROUP_FREQ
For use with group-by and std:groupwin, reclaim groups for unbound streams based on time, this number is the frequency in seconds at which a sweep occurs for aged
groups, if not provided then the sweep frequency is the same number as the age.
|
SET_NOINDEX
For use with subqueries and on-select, on-merge, on-update and on-delete to specify the query engine neither
build an implicit index nor use an existing index, always performing a full table scan.
|
Modifier and Type | Method and Description |
---|---|
Hint |
getHint(Annotation[] annotations)
Check if the hint is present in the annotations provided.
|
String |
getHintAssignedValue(Hint annotation)
Returns hint value.
|
List<String> |
getHintAssignedValues(Annotation[] annotations)
Returns all values assigned for a given hint, if any
|
String |
getValue()
Returns the constant.
|
boolean |
isAcceptsParameters()
True if the hint accepts params.
|
boolean |
isRequiresParameters()
True if the hint requires params.
|
static String[] |
splitCommaUnlessInParen(String line)
Split a line of comma-separated values allowing parenthesis.
|
static Map<HintEnum,List<String>> |
validateGetListed(Annotation annotation)
Validate a hint annotation ensuring it contains only recognized hints.
|
static HintEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HintEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HintEnum ITERATE_ONLY
public static final HintEnum DISABLE_RECLAIM_GROUP
public static final HintEnum RECLAIM_GROUP_AGED
public static final HintEnum RECLAIM_GROUP_FREQ
public static final HintEnum ENABLE_WINDOW_SUBQUERY_INDEXSHARE
By default and if this hint is not specified or subqueries specify a stream filter on a named window, subqueries use statement-local data structures representing named window contents (table, index). Such data structure is maintained by consuming the named window insert and remove stream.
public static final HintEnum DISABLE_WINDOW_SUBQUERY_INDEXSHARE
For use with statements that subquery a named window and that benefit from a statement-local data structure representing named window contents (table, index), maintained through consuming the named window insert and remove stream.
public static final HintEnum SET_NOINDEX
public static final HintEnum FORCE_NESTED_ITER
public static final HintEnum PREFER_MERGE_JOIN
public static final HintEnum INDEX
public static final HintEnum EXCLUDE_PLAN
public static final HintEnum DISABLE_UNIQUE_IMPLICIT_IDX
public static final HintEnum MAX_FILTER_WIDTH
public static final HintEnum DISABLE_WHEREEXPR_MOVETO_FILTER
public static final HintEnum ENABLE_OUTPUTLIMIT_OPT
public static HintEnum[] values()
for (HintEnum c : HintEnum.values()) System.out.println(c);
public static HintEnum 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 nullpublic String getValue()
public boolean isAcceptsParameters()
public boolean isRequiresParameters()
public Hint getHint(Annotation[] annotations)
annotations
- the annotations to inspectpublic static Map<HintEnum,List<String>> validateGetListed(Annotation annotation) throws AnnotationException
annotation
- to validateAnnotationException
- if an invalid text was foundpublic String getHintAssignedValue(Hint annotation)
annotation
- to look forpublic List<String> getHintAssignedValues(Annotation[] annotations)
annotations
- to be interogated