2011-03-18 22:37:00 +00:00
|
|
|
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
|
|
|
|
|
|
|
#ifndef STORAGE_LEVELDB_DB_DB_ITER_H_
|
|
|
|
#define STORAGE_LEVELDB_DB_DB_ITER_H_
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2011-03-30 18:35:40 +00:00
|
|
|
#include "leveldb/db.h"
|
2011-03-18 22:37:00 +00:00
|
|
|
#include "db/dbformat.h"
|
|
|
|
|
|
|
|
namespace leveldb {
|
|
|
|
|
|
|
|
// Return a new iterator that converts internal keys (yielded by
|
|
|
|
// "*internal_iter") that were live at the specified "sequence" number
|
|
|
|
// into appropriate user keys.
|
|
|
|
extern Iterator* NewDBIterator(
|
|
|
|
const std::string* dbname,
|
|
|
|
Env* env,
|
2013-03-21 22:59:47 +00:00
|
|
|
const Options& options,
|
|
|
|
const Comparator *user_key_comparator,
|
2011-03-18 22:37:00 +00:00
|
|
|
Iterator* internal_iter,
|
|
|
|
const SequenceNumber& sequence);
|
|
|
|
|
2011-10-31 17:22:06 +00:00
|
|
|
} // namespace leveldb
|
2011-03-18 22:37:00 +00:00
|
|
|
|
|
|
|
#endif // STORAGE_LEVELDB_DB_DB_ITER_H_
|