public enum StateTtlHint extends Enum<StateTtlHint>
ExecutionConfigOptions.IDLE_STATE_RETENTION
for stream joins.
TODO support agg state ttl hint.
Enum Constant and Description |
---|
STATE_TTL
Instructs the optimizer to use the specified state ttl for the underlying table.
|
Modifier and Type | Method and Description |
---|---|
String |
getHintName() |
static Map<Integer,Long> |
getStateTtlFromHintOnBiRel(List<org.apache.calcite.rel.hint.RelHint> hints)
Get the state ttl from hints on the
BiRel such as Join and
Correlate. |
static Long |
getStateTtlFromHintOnSingleRel(List<org.apache.calcite.rel.hint.RelHint> hints)
Get the state ttl from hints on the
SingleRel such as
Aggregate. |
static boolean |
isStateTtlHint(String hintName) |
static StateTtlHint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StateTtlHint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StateTtlHint STATE_TTL
Only accept key-value hint options.
public static StateTtlHint[] values()
for (StateTtlHint c : StateTtlHint.values()) System.out.println(c);
public static StateTtlHint 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 getHintName()
public static boolean isStateTtlHint(String hintName)
public static Map<Integer,Long> getStateTtlFromHintOnBiRel(List<org.apache.calcite.rel.hint.RelHint> hints)
BiRel
such as Join and
Correlate.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.