public static enum ExecuteSqlRequest.QueryMode extends java.lang.Enum<ExecuteSqlRequest.QueryMode> implements ProtocolMessageEnum
Mode in which the query must be processed.Protobuf enum
google.spanner.v1.ExecuteSqlRequest.QueryMode
Enum Constant and Description |
---|
NORMAL
The default mode where only the query result, without any information
about the query plan is returned.
|
PLAN
This mode returns only the query plan, without any result rows or
execution statistics information.
|
PROFILE
This mode returns both the query plan and the execution statistics along
with the result rows.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
NORMAL_VALUE
The default mode where only the query result, without any information
about the query plan is returned.
|
static int |
PLAN_VALUE
This mode returns only the query plan, without any result rows or
execution statistics information.
|
static int |
PROFILE_VALUE
This mode returns both the query plan and the execution statistics along
with the result rows.
|
Modifier and Type | Method and Description |
---|---|
static ExecuteSqlRequest.QueryMode |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<ExecuteSqlRequest.QueryMode> |
internalGetValueMap() |
static ExecuteSqlRequest.QueryMode |
valueOf(Descriptors.EnumValueDescriptor desc) |
static ExecuteSqlRequest.QueryMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ExecuteSqlRequest.QueryMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExecuteSqlRequest.QueryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecuteSqlRequest.QueryMode NORMAL
The default mode where only the query result, without any information about the query plan is returned.
NORMAL = 0;
public static final ExecuteSqlRequest.QueryMode PLAN
This mode returns only the query plan, without any result rows or execution statistics information.
PLAN = 1;
public static final ExecuteSqlRequest.QueryMode PROFILE
This mode returns both the query plan and the execution statistics along with the result rows.
PROFILE = 2;
public static final ExecuteSqlRequest.QueryMode UNRECOGNIZED
public static final int NORMAL_VALUE
The default mode where only the query result, without any information about the query plan is returned.
NORMAL = 0;
public static final int PLAN_VALUE
This mode returns only the query plan, without any result rows or execution statistics information.
PLAN = 1;
public static final int PROFILE_VALUE
This mode returns both the query plan and the execution statistics along with the result rows.
PROFILE = 2;
public static ExecuteSqlRequest.QueryMode[] values()
for (ExecuteSqlRequest.QueryMode c : ExecuteSqlRequest.QueryMode.values()) System.out.println(c);
public static ExecuteSqlRequest.QueryMode 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 final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static ExecuteSqlRequest.QueryMode valueOf(int value)
forNumber(int)
instead.public static ExecuteSqlRequest.QueryMode forNumber(int value)
public static Internal.EnumLiteMap<ExecuteSqlRequest.QueryMode> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static ExecuteSqlRequest.QueryMode valueOf(Descriptors.EnumValueDescriptor desc)