public final class DefaultReadResult extends Object implements ReadResult
| Constructor and Description |
|---|
DefaultReadResult(BulkExecutionException error) |
DefaultReadResult(Statement<?> statement,
ExecutionInfo executionInfo,
Row row) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Optional<BulkExecutionException> |
getError()
Returns an optional
BulkExecutionException. |
Optional<ExecutionInfo> |
getExecutionInfo() |
Optional<Row> |
getRow()
Returns the encapsulated
Row object for this read result, if present. |
Statement<?> |
getStatement()
Returns the
Statement that has been executed to obtain this result. |
int |
hashCode() |
boolean |
isSuccess()
Returns
true if the statement execution succeeded, false otherwise. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitifSuccessgetBatchSize, getError, getExecutionInfo, getStatement, ifError, isSuccesspublic DefaultReadResult(@NonNull
Statement<?> statement,
@NonNull
ExecutionInfo executionInfo,
@NonNull
Row row)
public DefaultReadResult(@NonNull
BulkExecutionException error)
@NonNull public Optional<Row> getRow()
ReadResultRow object for this read result, if present.
The value is present if the execution succeeded, and absent otherwise.
getRow in interface ReadResultRow object for this read result, if present.public boolean equals(Object o)
public int hashCode()
public boolean isSuccess()
Resulttrue if the statement execution succeeded, false otherwise.
In case of conditional updates, this method returns true as long as the statement
was executed, even if the conditional update itself could
not be applied.
@NonNull public Statement<?> getStatement()
ResultStatement that has been executed to obtain this result.getStatement in interface Result@NonNull public Optional<BulkExecutionException> getError()
ResultBulkExecutionException. The value is only present if the statement
execution failed, in which case, this exception contains the cause of the failure.getError in interface ResultBulkExecutionException.@NonNull public Optional<ExecutionInfo> getExecutionInfo()
getExecutionInfo in interface ResultCopyright © 2017–2021 DataStax. All rights reserved.