1179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org// Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org// Use of this source code is governed by a BSD-style license that can be 3179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org// found in the LICENSE file. See the AUTHORS file for names of contributors. 4179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org 5179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org#ifndef STORAGE_LEVELDB_DB_DB_ITER_H_ 6179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org#define STORAGE_LEVELDB_DB_DB_ITER_H_ 7179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org 8179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org#include <stdint.h> 9fbd97aa4c5325eace57d24b89845b9581bac9324jorlow@chromium.org#include "leveldb/db.h" 10179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org#include "db/dbformat.h" 11179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org 12179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.orgnamespace leveldb { 13179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org 1408595b9e51ded54851b7664bd38affad63a67838dgrogan@chromium.orgclass DBImpl; 1508595b9e51ded54851b7664bd38affad63a67838dgrogan@chromium.org 16179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org// Return a new iterator that converts internal keys (yielded by 17179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org// "*internal_iter") that were live at the specified "sequence" number 18179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org// into appropriate user keys. 19179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.orgextern Iterator* NewDBIterator( 2008595b9e51ded54851b7664bd38affad63a67838dgrogan@chromium.org DBImpl* db, 21179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org const Comparator* user_key_comparator, 22179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org Iterator* internal_iter, 2308595b9e51ded54851b7664bd38affad63a67838dgrogan@chromium.org SequenceNumber sequence, 2408595b9e51ded54851b7664bd38affad63a67838dgrogan@chromium.org uint32_t seed); 25179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org 2645b9940be332834440bd5299419f396e38085ebehans@chromium.org} // namespace leveldb 27179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org 28179be588c25dccaa963df9c9c104fc6229435483jorlow@chromium.org#endif // STORAGE_LEVELDB_DB_DB_ITER_H_ 29