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
5#ifndef STORAGE_LEVELDB_DB_DB_ITER_H_
6#define STORAGE_LEVELDB_DB_DB_ITER_H_
7
8#include <stdint.h>
9#include "leveldb/db.h"
10#include "db/dbformat.h"
11
12namespace leveldb {
13
14// Return a new iterator that converts internal keys (yielded by
15// "*internal_iter") that were live at the specified "sequence" number
16// into appropriate user keys.
17extern Iterator* NewDBIterator(
18    const std::string* dbname,
19    Env* env,
20    const Comparator* user_key_comparator,
21    Iterator* internal_iter,
22    const SequenceNumber& sequence);
23
24}  // namespace leveldb
25
26#endif  // STORAGE_LEVELDB_DB_DB_ITER_H_
27