Class WriteResult

java.lang.Object
org.springframework.data.cassandra.core.WriteResult
Direct Known Subclasses:
EntityWriteResult

public class WriteResult extends Object
The result of a write operation.
Since:
2.0
Author:
Mark Paluch
See Also:
  • ResultSet
  • Constructor Details

    • WriteResult

      protected WriteResult(List<com.datastax.oss.driver.api.core.cql.ExecutionInfo> executionInfo, boolean wasApplied, List<com.datastax.oss.driver.api.core.cql.Row> rows)
    • WriteResult

      protected WriteResult(com.datastax.oss.driver.api.core.cql.ResultSet resultSet)
  • Method Details

    • of

      public static WriteResult of(com.datastax.oss.driver.api.core.cql.ResultSet resultSet)
      Create a WriteResult from ResultSet.
      Parameters:
      resultSet - must not be null.
      Returns:
      the WriteResult for ResultSet.
    • wasApplied

      public boolean wasApplied()
      Returns:
      true if the write was applied.
    • getExecutionInfo

      public List<com.datastax.oss.driver.api.core.cql.ExecutionInfo> getExecutionInfo()
      Returns:
      the list of ExecutionInfo.
    • getRows

      public List<com.datastax.oss.driver.api.core.cql.Row> getRows()
      Returns:
      the rows returned by the write operation.