3D Repo Bouncer  1.4
repo_bson_collection_stats.h
1 
22 #pragma once
23 #include "repo_bson.h"
24 
25 #include "../../../repo_bouncer_global.h"
26 
27 namespace repo {
28  namespace core {
29  namespace model {
30  class REPO_API_EXPORT CollectionStats :
31  public RepoBSON
32  {
33  public:
38 
39  CollectionStats(RepoBSON bson) : RepoBSON(bson) {};
40 
44  ~CollectionStats();
45 
46  //--------------------------------------------------------------------------
47 
49  uint64_t getActualSizeOnDisk() const;
50 
52  static std::string getDatabase(const std::string& ns);
53 
55  std::string getDatabase() const;
56 
58  uint64_t getCount() const;
59 
61  std::string getCollection() const;
62 
64  static std::string getCollection(const std::string &ns);
65 
67  std::string getNs() const;
68 
70  uint64_t getSize(const std::string& name) const;
71 
81  uint64_t getSize() const;
82 
89  uint64_t getStorageSize() const;
90 
94  uint64_t getTotalIndexSize() const;
95  };
96  }// end namespace model
97  } // end namespace core
98 } // end namespace repo
Definition: repo_bson_collection_stats.h:30
Definition: repo_connection_pool_mongo.h:32
Definition: repo_bson.h:53