public class ShowProcStatusRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.showProcStatus(ShowProcStatusRequest)
.
Shows the statuses of running or completed proc instances. Results are
grouped by run ID (as returned from GPUdb.executeProc(ExecuteProcRequest)
) and data segment ID (each
invocation of the proc command on a data segment is assigned a data segment
ID).
Modifier and Type | Class and Description |
---|---|
static class |
ShowProcStatusRequest.Options
Optional parameters.
|
Constructor and Description |
---|
ShowProcStatusRequest()
Constructs a ShowProcStatusRequest object with default parameters.
|
ShowProcStatusRequest(String runId,
Map<String,String> options)
Constructs a ShowProcStatusRequest object with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
Map<String,String> |
getOptions() |
String |
getRunId() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
ShowProcStatusRequest |
setOptions(Map<String,String> options) |
ShowProcStatusRequest |
setRunId(String runId) |
String |
toString() |
public ShowProcStatusRequest()
public ShowProcStatusRequest(String runId, Map<String,String> options)
runId
- The run ID of a specific proc instance for which the
status will be returned. If a proc with a matching run ID
is not found, the response will be empty. If not
specified, the statuses of all executed proc instances
will be returned. The default value is ''.options
- Optional parameters.
CLEAR_COMPLETE
: If set to true
, if a proc
instance has completed (either successfully or
unsuccessfully) then its status will be cleared and no
longer returned in subsequent calls.
Supported values:
The default value is FALSE
.
RUN_TAG
: If runId
is specified, return the
status for a proc instance that has a matching run ID
and a matching run tag that was provided to GPUdb.executeProc(ExecuteProcRequest)
. If
runId
is not specified, return statuses for all
proc instances where a matching run tag was provided to
GPUdb.executeProc(ExecuteProcRequest)
.
The default value is ''.
Map
.public static org.apache.avro.Schema getClassSchema()
public String getRunId()
public ShowProcStatusRequest setRunId(String runId)
runId
- The run ID of a specific proc instance for which the
status will be returned. If a proc with a matching run ID
is not found, the response will be empty. If not
specified, the statuses of all executed proc instances
will be returned. The default value is ''.this
to mimic the builder pattern.public Map<String,String> getOptions()
CLEAR_COMPLETE
: If set to true
, if a proc instance has
completed (either successfully or unsuccessfully) then its
status will be cleared and no longer returned in subsequent
calls.
Supported values:
The default value is FALSE
.
RUN_TAG
: If runId
is specified, return the status for a
proc instance that has a matching run ID and a matching run tag
that was provided to GPUdb.executeProc(ExecuteProcRequest)
. If runId
is not specified, return statuses for all proc instances
where a matching run tag was provided to GPUdb.executeProc(ExecuteProcRequest)
. The default
value is ''.
Map
.public ShowProcStatusRequest setOptions(Map<String,String> options)
options
- Optional parameters.
CLEAR_COMPLETE
: If set to true
, if a proc
instance has completed (either successfully or
unsuccessfully) then its status will be cleared and no
longer returned in subsequent calls.
Supported values:
The default value is FALSE
.
RUN_TAG
: If runId
is specified, return the
status for a proc instance that has a matching run ID
and a matching run tag that was provided to GPUdb.executeProc(ExecuteProcRequest)
. If
runId
is not specified, return statuses for all
proc instances where a matching run tag was provided to
GPUdb.executeProc(ExecuteProcRequest)
.
The default value is ''.
Map
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2020. All rights reserved.