mirror of
https://github.com/facebook/rocksdb.git
synced 2024-12-04 20:02:50 +00:00
2a551976f4
Summary: Run format check for .h and .cc files to clean the format Pull Request resolved: https://github.com/facebook/rocksdb/pull/10851 Test Plan: Watch CI tests to pass Reviewed By: ajkr Differential Revision: D40649723 fbshipit-source-id: 62d32cead0b3b8e6540e86d25451bd72642109eb
35 lines
1,023 B
C++
35 lines
1,023 B
C++
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
|
|
// 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).
|
|
//
|
|
// This file implements the callback "bridge" between Java and C++ for
|
|
// ROCKSDB_NAMESPACE::Statistics
|
|
|
|
#ifndef JAVA_ROCKSJNI_STATISTICSJNI_H_
|
|
#define JAVA_ROCKSJNI_STATISTICSJNI_H_
|
|
|
|
#include <memory>
|
|
#include <set>
|
|
#include <string>
|
|
|
|
#include "monitoring/statistics.h"
|
|
#include "rocksdb/statistics.h"
|
|
|
|
namespace ROCKSDB_NAMESPACE {
|
|
|
|
class StatisticsJni : public StatisticsImpl {
|
|
public:
|
|
StatisticsJni(std::shared_ptr<Statistics> stats);
|
|
StatisticsJni(std::shared_ptr<Statistics> stats,
|
|
const std::set<uint32_t> ignore_histograms);
|
|
virtual bool HistEnabledForType(uint32_t type) const override;
|
|
|
|
private:
|
|
const std::set<uint32_t> m_ignore_histograms;
|
|
};
|
|
|
|
} // namespace ROCKSDB_NAMESPACE
|
|
|
|
#endif // JAVA_ROCKSJNI_STATISTICSJNI_H_
|