public static enum FQLPreprocessor.SessionAttr extends java.lang.Enum<FQLPreprocessor.SessionAttr>
| Enum Constant and Description |
|---|
DATE_FORMAT
SESSION:DATE-FORMAT
|
TIMEZONE
SESSION:TIMEZONE
|
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<java.lang.String,FQLPreprocessor.SessionAttr> |
ATTRS
Map of values by placeholeder
|
java.lang.String |
placeHolder
Placeholder used in re-writing
|
FqlType |
type
Placeholder value type
|
java.util.function.Function<Dialect,java.lang.String> |
value
Placeholder value supplier
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<FQLPreprocessor.SessionAttr> |
sessionAttr(java.lang.String placeHolder)
Map placeholder to attribute
|
private static java.lang.String |
tz(Dialect dialect)
Get timezone for UDF argument
|
static FQLPreprocessor.SessionAttr |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FQLPreprocessor.SessionAttr[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FQLPreprocessor.SessionAttr DATE_FORMAT
public static final FQLPreprocessor.SessionAttr TIMEZONE
private static final java.util.Map<java.lang.String,FQLPreprocessor.SessionAttr> ATTRS
public final java.lang.String placeHolder
public final java.util.function.Function<Dialect,java.lang.String> value
public final FqlType type
public static FQLPreprocessor.SessionAttr[] values()
for (FQLPreprocessor.SessionAttr c : FQLPreprocessor.SessionAttr.values()) System.out.println(c);
public static FQLPreprocessor.SessionAttr valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullprivate static java.lang.String tz(Dialect dialect)
public static java.util.Optional<FQLPreprocessor.SessionAttr> sessionAttr(java.lang.String placeHolder)
placeHolder - attribute placeHolder