Package oracle.nosql.driver.ops
Class PrepareResult
java.lang.Object
oracle.nosql.driver.ops.Result
oracle.nosql.driver.ops.PrepareResult
The result of a prepare operation. The returned
PreparedStatement
can be re-used for query execution using
QueryRequest.setPreparedStatement(oracle.nosql.driver.ops.PreparedStatement)
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the prepared statementint
Returns the read throughput consumed by this operation, in KBytes.int
Returns the read throughput consumed by this operation, in read units.int
Returns the write throughput consumed by this operation, in KBytes.int
Returns the write throughput consumed by this operation, in write units.Methods inherited from class oracle.nosql.driver.ops.Result
getRateLimitDelayedMs, getRetryStats
-
Constructor Details
-
PrepareResult
public PrepareResult()Default constructor for PrepareResult
-
-
Method Details
-
getPreparedStatement
Returns the value of the prepared statement- Returns:
- the prepared statement
-
getReadKB
public 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 if the operation usedConsistency.ABSOLUTE
- Returns:
- the read KBytes consumed
-
getWriteKB
public int getWriteKB()Returns the write throughput consumed by this operation, in KBytes.- Returns:
- the write KBytes consumed
-
getReadUnits
public int getReadUnits()Returns the read throughput consumed by this operation, in read units. This number may be larger than that returned bygetReadKB()
if the operation usedConsistency.ABSOLUTE
- Returns:
- the read units consumed
-
getWriteUnits
public int getWriteUnits()Returns the write throughput consumed by this operation, in write units.- Returns:
- the write units consumed
-