作者: 韩晨旭 10225101440 李畅 10225102463
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 "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. }
  20. #endif // STORAGE_LEVELDB_DB_DB_ITER_H_