作者: 谢瑞阳 10225101483 徐翔宇 10225101535
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

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