作者: 谢瑞阳 10225101483 徐翔宇 10225101535
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

26 lignes
783 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 "include/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. }
  20. #endif // STORAGE_LEVELDB_DB_DB_ITER_H_