Class WriteResult
java.lang.Object
org.springframework.data.cassandra.core.WriteResult
- Direct Known Subclasses:
EntityWriteResult
The result of a write operation.
- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
ResultSet
-
Constructor Summary
ModifierConstructorDescriptionprotected
WriteResult
(com.datastax.oss.driver.api.core.cql.ResultSet resultSet) protected
WriteResult
(List<com.datastax.oss.driver.api.core.cql.ExecutionInfo> executionInfo, boolean wasApplied, List<com.datastax.oss.driver.api.core.cql.Row> rows) -
Method Summary
Modifier and TypeMethodDescriptionList<com.datastax.oss.driver.api.core.cql.ExecutionInfo>
List<com.datastax.oss.driver.api.core.cql.Row>
getRows()
static WriteResult
of
(com.datastax.oss.driver.api.core.cql.ResultSet resultSet) Create aWriteResult
fromResultSet
.boolean
-
Constructor Details
-
WriteResult
-
WriteResult
protected WriteResult(com.datastax.oss.driver.api.core.cql.ResultSet resultSet)
-
-
Method Details
-
of
Create aWriteResult
fromResultSet
.- Parameters:
resultSet
- must not be null.- Returns:
- the
WriteResult
forResultSet
.
-
wasApplied
public boolean wasApplied()- Returns:
- true if the write was applied.
-
getExecutionInfo
- Returns:
- the list of
ExecutionInfo
.
-
getRows
- Returns:
- the
rows
returned by the write operation.
-