Package oracle.nosql.driver.ops
Class WriteMultipleResult
java.lang.Object
oracle.nosql.driver.ops.Result
oracle.nosql.driver.ops.WriteMultipleResult
Represents the result of a 
NoSQLHandle.writeMultiple(oracle.nosql.driver.ops.WriteMultipleRequest) operation.
 
 If the WriteMultiple succeeds, the execution result of each sub operation
 can be retrieved using getResults().
 
 If the WriteMultiple operation is aborted because of the failure of an
 operation with abortIfUnsuccessful set to true, then the index of failed
 operation can be accessed using getFailedOperationIndex(), and the
 execution result of failed operation can be accessed using
 getFailedOperationResult().
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThe Result associated with the execution of an individual operation in the request.
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the index of failed operation that results in the entire WriteMultiple operation aborting.Returns the result of the operation that results in the entire WriteMultiple operation aborting.intReturns the read throughput consumed by this operation, in KBytes.intReturns the read throughput consumed by this operation, in read units.Returns the list of execution results for the operations.booleanReturns true if the WriteMultiple operation succeeded, or false if the operation is aborted due to the failure of a sub operation.intReturns the write throughput consumed by this operation, in KBytes.intReturns the write throughput consumed by this operation, in write units.intsize()Returns the number of results.toString()Methods inherited from class oracle.nosql.driver.ops.ResultgetRateLimitDelayedMs, getRetryStats
- 
Method Details- 
getSuccesspublic boolean getSuccess()Returns true if the WriteMultiple operation succeeded, or false if the operation is aborted due to the failure of a sub operation.The failed operation index can be accessed using getFailedOperationIndex()and its result can be accessed usinggetFailedOperationResult().- Returns:
- true if the operation succeeded
 
- 
getResultsReturns the list of execution results for the operations.- Returns:
- the list of execution results
 
- 
sizepublic int size()Returns the number of results.- Returns:
- the number of results
 
- 
getFailedOperationIndexpublic int getFailedOperationIndex()Returns the index of failed operation that results in the entire WriteMultiple operation aborting.- Returns:
- the index of operation, -1 if not set.
 
- 
getFailedOperationResultReturns the result of the operation that results in the entire WriteMultiple operation aborting.- Returns:
- the result of the operation, null if not set.
 
- 
getReadKBpublic int getReadKB()Returns the read throughput consumed by this operation, in KBytes. This is the actual amount of data read by the operation. The number of read units consumed is returned bygetReadUnits()which may be a larger number because this was an update operation.- Returns:
- the read KBytes consumed
 
- 
getWriteKBpublic int getWriteKB()Returns the write throughput consumed by this operation, in KBytes.- Returns:
- the write KBytes consumed
 
- 
getReadUnitspublic int getReadUnits()Returns the read throughput consumed by this operation, in read units. This number may be larger than that returned bygetReadKB()because it was an update operation.- Returns:
- the read units consumed
 
- 
getWriteUnitspublic int getWriteUnits()Returns the write throughput consumed by this operation, in write units.- Returns:
- the write units consumed
 
- 
toString
 
-