小组成员:谢瑞阳、徐翔宇
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

26 linhas
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_