-// 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.
// Copyright (c) 2011-present, 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.
+// This source code is licensed under both the GPLv2 (found in the
+// COPYING file in the root directory) and Apache 2.0 License
+// (found in the LICENSE.Apache file in the root directory).
#pragma once
#include <algorithm>
public:
explicit MockTableReader(const stl_wrappers::KVMap& table) : table_(table) {}
- InternalIterator* NewIterator(const ReadOptions&, Arena* arena,
- bool skip_filters = false) override;
+ InternalIterator* NewIterator(const ReadOptions&,
+ const SliceTransform* prefix_extractor,
+ Arena* arena = nullptr,
+ bool skip_filters = false,
+ bool for_compaction = false) override;
- Status Get(const ReadOptions&, const Slice& key, GetContext* get_context,
+ Status Get(const ReadOptions& readOptions, const Slice& key,
+ GetContext* get_context, const SliceTransform* prefix_extractor,
bool skip_filters = false) override;
- uint64_t ApproximateOffsetOf(const Slice& key) override { return 0; }
+ uint64_t ApproximateOffsetOf(const Slice& /*key*/) override { return 0; }
virtual size_t ApproximateMemoryUsage() const override { return 0; }
stl_wrappers::KVMap file_contents);
virtual Status SanitizeOptions(
- const DBOptions& db_opts,
- const ColumnFamilyOptions& cf_opts) const override {
+ const DBOptions& /*db_opts*/,
+ const ColumnFamilyOptions& /*cf_opts*/) const override {
return Status::OK();
}