public interface WriteResult extends Result
| Modifier and Type | Method and Description |
|---|---|
Stream<? extends Row> |
getFailedWrites()
If the query that produced this result was a conditional update, but the conditional update
wasn't successful, returns a
Stream containing the failed writes. |
boolean |
wasApplied()
If the query that produced this result was a conditional update, returns whether the
conditional update could be successfully applied.
|
getBatchSize, getError, getExecutionInfo, getStatement, ifError, isSuccessboolean wasApplied()
If the query was unsuccessful (i.e., Result.getError() is not empty), then this method
always returns false; if the query was successful but wasn't a conditional update, then
this method always returns true.
true if the conditional update was successfully applied, or if the write wasn't
a conditional update; false otherwise.Stream<? extends Row> getFailedWrites()
Stream containing the failed writes.
If the query wasn't a conditional update, or if the conditional update was successful, this method returns an empty stream.
Note that the returned stream will contain one single item for single inserts and updates; only batch inserts and updates can generate a stream of more than one item.
The stream can only be consumed once.
Stream containing the failed writes, or an empty stream if no writes failed.Copyright © 2017–2021 DataStax. All rights reserved.