db_iter.h 805 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file. See the AUTHORS file for names of contributors.
  4. #ifndef STORAGE_LEVELDB_DB_DB_ITER_H_
  5. #define STORAGE_LEVELDB_DB_DB_ITER_H_
  6. #include <stdint.h>
  7. #include "leveldb/db.h"
  8. #include "db/dbformat.h"
  9. namespace leveldb {
  10. // Return a new iterator that converts internal keys (yielded by
  11. // "*internal_iter") that were live at the specified "sequence" number
  12. // into appropriate user keys.
  13. extern Iterator* NewDBIterator(
  14. const std::string* dbname,
  15. Env* env,
  16. const Comparator* user_key_comparator,
  17. Iterator* internal_iter,
  18. const SequenceNumber& sequence);
  19. } // namespace leveldb
  20. #endif // STORAGE_LEVELDB_DB_DB_ITER_H_