iterator abstract method

DBIterator iterator({
  1. bool verifyChecksums = false,
  2. bool fillCache = true,
  3. Snapshot snapshot,
})

Return an iterator over the contents of the database. Caller should dispose the iterator when it is no longer needed. The returned iterator should be disposed before this db is disposed.

verifyChecksums: If true, all data read from underlying storage will be verified against corresponding checksums.

fillCache: Should the data read for this iteration be cached in memory? Callers may wish to set this field to false for bulk scans.

snapshot: If is non-null, read as of the supplied snapshot (which must belong to the DB that is being read and which must not have been released). If snapshot is null, use an implicit snapshot of the state at the beginning of this read operation.

Implementation

DBIterator iterator({
  bool verifyChecksums = false,
  bool fillCache = true,
  Snapshot snapshot,
});