public static enum DataContext.Variable extends java.lang.Enum<DataContext.Variable>
DataContext.get(java.lang.String)
.Enum Constant and Description |
---|
CANCEL_FLAG
A mutable flag that indicates whether user has requested that the
current statement be canceled.
|
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
Advisor that suggests completion hints for SQL statements.
|
STDERR
Writer to the standard error (stderr).
|
STDIN
Reader on the standard input (stdin).
|
STDOUT
Writer to the standard output (stdout).
|
SYSTEM_USER
The system user.
|
TIME_ZONE
Time zone in which the current statement is executing.
|
TIMEOUT
Query timeout in milliseconds.
|
USER
The query user.
|
UTC_TIMESTAMP |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
camelName |
java.lang.Class |
clazz |
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(java.lang.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 CANCEL_FLAG
public static final DataContext.Variable TIMEOUT
public static final DataContext.Variable SQL_ADVISOR
public static final DataContext.Variable STDERR
public static final DataContext.Variable STDIN
public static final DataContext.Variable STDOUT
public static final DataContext.Variable TIME_ZONE
public static final DataContext.Variable USER
Default value is "sa".
public static final DataContext.Variable SYSTEM_USER
Default value is "user.name" from
System.getProperty(String)
.
public final java.lang.String camelName
public final java.lang.Class clazz
public static DataContext.Variable[] values()
for (DataContext.Variable c : DataContext.Variable.values()) System.out.println(c);
public static DataContext.Variable 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 nullpublic <T> T get(DataContext dataContext)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.