10225501448 李度 10225101546 陈胤遒 10215501422 高宇菲
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
803 B

  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. class DBImpl;
  11. // Return a new iterator that converts internal keys (yielded by
  12. // "*internal_iter") that were live at the specified "sequence" number
  13. // into appropriate user keys.
  14. extern Iterator* NewDBIterator(
  15. DBImpl* db,
  16. const Comparator* user_key_comparator,
  17. Iterator* internal_iter,
  18. SequenceNumber sequence,
  19. uint32_t seed);
  20. } // namespace leveldb
  21. #endif // STORAGE_LEVELDB_DB_DB_ITER_H_