public static enum DataContext.Variable extends Enum<DataContext.Variable>
DataContext.get(java.lang.String).| Enum Constant and Description |
|---|
CURRENT_TIMESTAMP
The time at which the current statement started executing.
|
LOCAL_TIMESTAMP
The time at which the current statement started executing.
|
SPARK_CONTEXT
The Spark engine.
|
SQL_ADVISOR
Sql advisor that suggests completion hints.
|
TIME_ZONE
Time zone in which the current statement is executing.
|
UTC_TIMESTAMP |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(DataContext dataContext)
Returns the value of this variable in a given data context.
|
static DataContext.Variable |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataContext.Variable[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataContext.Variable UTC_TIMESTAMP
public static final DataContext.Variable CURRENT_TIMESTAMP
public static final DataContext.Variable LOCAL_TIMESTAMP
public static final DataContext.Variable SPARK_CONTEXT
public static final DataContext.Variable SQL_ADVISOR
public static final DataContext.Variable TIME_ZONE
public static DataContext.Variable[] values()
for (DataContext.Variable c : DataContext.Variable.values()) System.out.println(c);
public static DataContext.Variable 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 <T> T get(DataContext dataContext)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.