Package oracle.kv
Interface ExecutionSubscription
-
- All Superinterfaces:
IterationSubscription
,org.reactivestreams.Subscription
public interface ExecutionSubscription extends IterationSubscription
A subinterface ofSubscription
implemented by subscriptions supplied when aSubscriber
subscribes to aPublisher
associated with the asynchronous execution of a query.- Since:
- 19.5
- See Also:
KVStore.executeAsync(java.lang.String, oracle.kv.query.ExecuteOptions)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getInfo()
Returns information about the completed execution of the associated statement, in human readable form.String
getInfoAsJson()
Returns the same information asgetInfo()
, in JSON format.StatementResult.Kind
getKind()
Returns the kind of statement result produced by the associated statement execution.int
getPlanId()
Returns the administrative plan id for the associated statement execution if the statement was a DDL statement: create or remove table, a create or remove index, or an alter index.RecordDef
getResultDef()
Returns the definition of the result of this statement if the statement is a query, otherwise null.Statement
getStatement()
Returns the statement object for the associated statement execution.-
Methods inherited from interface oracle.kv.IterationSubscription
getPartitionMetrics, getShardMetrics
-
-
-
-
Method Detail
-
getKind
StatementResult.Kind getKind()
Returns the kind of statement result produced by the associated statement execution.- Returns:
- the kind of statement result
-
getStatement
Statement getStatement()
Returns the statement object for the associated statement execution.- Returns:
- the statement
-
getPlanId
int getPlanId()
Returns the administrative plan id for the associated statement execution if the statement was a DDL statement: create or remove table, a create or remove index, or an alter index. When using the Admin CLI (runadmin) utility, administrative operations are identified by plan id. The plan id can be used to correlate data definition and administrative statements issued programmatically using the API against operations viewed via the interactive Admin CLI or other monitoring tool.Returns 0 if the statement was not an administrative operation, or did not require execution.
- Returns:
- the plan ID or
0
-
getInfo
String getInfo()
Returns information about the completed execution of the associated statement, in human readable form. If the statement was a data definition command, the information will show the start and end time of the operation and details about server side processing. Returnsnull
if the statement was not an administrative operation, or if statement execution is not completed.- Returns:
- info or
null
-
getInfoAsJson
String getInfoAsJson()
Returns the same information asgetInfo()
, in JSON format. Returnsnull
if the statement was not an administrative operation, or if statement execution is not completed.- Returns:
- info or
null
-
getResultDef
RecordDef getResultDef()
Returns the definition of the result of this statement if the statement is a query, otherwise null.- Returns:
- the definition of the result or
null
- Since:
- 22.2
-
-