public enum QueryState extends Enum<QueryState>
| Enum Constant and Description |
|---|
DISPATCHING
Query is being dispatched to a coordinator.
|
FAILED
Query execution failed.
|
FINISHED
Query has finished executing and all output has been consumed.
|
FINISHING
Query is finishing (e.g.
|
PLANNING
Query is being planned.
|
QUEUED
Query has been accepted and is awaiting execution.
|
RUNNING
Query has at least one running task.
|
STARTING
Query execution is being started.
|
WAITING_FOR_RESOURCES
Query is waiting for the required resources (beta).
|
| Modifier and Type | Field and Description |
|---|---|
static Set<QueryState> |
TERMINAL_QUERY_STATES |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDone()
Is this a terminal state.
|
static QueryState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueryState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueryState QUEUED
public static final QueryState WAITING_FOR_RESOURCES
public static final QueryState DISPATCHING
public static final QueryState PLANNING
public static final QueryState STARTING
public static final QueryState RUNNING
public static final QueryState FINISHING
public static final QueryState FINISHED
public static final QueryState FAILED
public static final Set<QueryState> TERMINAL_QUERY_STATES
public static QueryState[] values()
for (QueryState c : QueryState.values()) System.out.println(c);
public static QueryState 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 boolean isDone()
Copyright © 2012–2019. All rights reserved.