2013-10-16 23:59:46 +02:00
|
|
|
// Copyright (c) 2013, Facebook, Inc. All rights reserved.
|
|
|
|
// This source code is licensed under the BSD-style license found in the
|
|
|
|
// LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
// of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
//
|
2011-03-18 23:37:00 +01: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.
|
|
|
|
|
2013-10-05 07:32:05 +02:00
|
|
|
#pragma once
|
2011-03-18 23:37:00 +01:00
|
|
|
|
2013-10-04 06:49:15 +02:00
|
|
|
namespace rocksdb {
|
2011-03-18 23:37:00 +01:00
|
|
|
|
|
|
|
class Comparator;
|
|
|
|
class Iterator;
|
2013-11-18 20:32:54 +01:00
|
|
|
class Env;
|
2011-03-18 23:37:00 +01:00
|
|
|
|
|
|
|
// Return an iterator that provided the union of the data in
|
|
|
|
// children[0,n-1]. Takes ownership of the child iterators and
|
|
|
|
// will delete them when the result iterator is deleted.
|
|
|
|
//
|
|
|
|
// The result does no duplicate suppression. I.e., if a particular
|
|
|
|
// key is present in K child iterators, it will be yielded K times.
|
|
|
|
//
|
|
|
|
// REQUIRES: n >= 0
|
2014-01-28 19:35:48 +01:00
|
|
|
extern Iterator* NewMergingIterator(Env* const env,
|
|
|
|
const Comparator* comparator,
|
|
|
|
Iterator** children, int n);
|
2011-03-18 23:37:00 +01:00
|
|
|
|
2013-10-04 06:49:15 +02:00
|
|
|
} // namespace rocksdb
|