Interface WriteResult

All Superinterfaces:
Iterable<NitriteId>

public interface WriteResult extends Iterable<NitriteId>
An interface to represent the result of a write operation in Nitrite database. It is an iterable of NitriteIds of affected documents.
Since:
1.0
Author:
Anindya Chatterjee
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Gets the number of affected documents by the write operation.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • getAffectedCount

      default int getAffectedCount()
      Gets the number of affected documents by the write operation.
      Returns:
      the affected document count.