/base/hiviewdfx/hiview/adapter/dbstore/ |
D | data_query.cpp | 22 int DataQuery::defLimit_ = 100; 23 DataQuery::DataQuery() : limit_(defLimit_), offset_(0) {} in DataQuery() function in OHOS::HiviewDFX::DataQuery 25 DataQuery::~DataQuery() {} in ~DataQuery() 27 DataQuery& DataQuery::Reset() in Reset() 36 DOCSTORE_API DataQuery& DataQuery::Select(const std::vector<std::string>& fields) in Select() 42 DataQuery& DataQuery::StartWith(const std::string &field, const std::string &value) in StartWith() 48 DataQuery& DataQuery::NotStartWith(const std::string &field, const std::string &value) in NotStartWith() 54 DataQuery& DataQuery::And() in And() 60 DataQuery& DataQuery::Or() in Or() 66 DataQuery& DataQuery::OrderByAsc(const std::string &field) in OrderByAsc() [all …]
|
D | doc_store.cpp | 128 int DocStore::Delete(const DataQuery &query, const char* coll) in Delete() 195 int DocStore::GetEntriesWithQuery(const DataQuery &query, std::vector<Entry> &entries, const char* … in GetEntriesWithQuery() 265 int DocStore::GetEntryDuringQuery(const DataQuery &query, std::function<int (int, const Entry&)> ca… in GetEntryDuringQuery()
|
/base/hiviewdfx/hiview/adapter/dbstore/include/ |
D | data_query.h | 27 class DataQuery { 29 DOCSTORE_API DataQuery(); 31 DOCSTORE_API ~DataQuery(); 33 DOCSTORE_API DataQuery& Reset(); 35 DOCSTORE_API DataQuery& Select(const std::vector<std::string>& fields); 38 DOCSTORE_API DataQuery& EqualTo(const std::string &field, const T &value) in EqualTo() 46 DOCSTORE_API DataQuery& NotEqualTo(const std::string &field, const T &value) in NotEqualTo() 54 DOCSTORE_API DataQuery& GreaterThan(const std::string &field, const T &value) in GreaterThan() 62 DOCSTORE_API DataQuery& LessThan(const std::string &field, const T &value) in LessThan() 70 DOCSTORE_API DataQuery& GreaterThanOrEqualTo(const std::string &field, const T &value) in GreaterThanOrEqualTo() [all …]
|
D | doc_store.h | 46 DOCSTORE_API int Delete(const DataQuery &query, const char* coll = COLLECTION); 50 DOCSTORE_API int GetEntriesWithQuery(const DataQuery &query, std::vector<Entry> &entries, 53 DOCSTORE_API int GetEntryDuringQuery(const DataQuery &query,
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/include/ |
D | mock_single_kv_store.h | 52 Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override; 70 …Status GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const ov… 87 Status GetCount(const DataQuery &query, int &result) const override; 284 …virtual Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &que… 296 …virtual Status SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &quer… 305 …virtual Status UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &qu…
|
/base/hiviewdfx/hiview/base/event_store/include/ |
D | sys_event_query_wrapper.h | 58 bool IsConditionCntValid(const DataQuery& query, const DbQueryTag& tag); 59 bool IsQueryCntLimitValid(const DataQuery& query, const DbQueryTag& tag, const int limit, 61 bool IsQueryCostTimeValid(const DataQuery& query, const DbQueryTag& tag, const time_t before, 65 …bool IsQueryFrequenceValid(const DataQuery& query, const DbQueryTag& tag, const std::string& dbFil…
|
D | sys_event_query.h | 33 class DataQuery; variable 127 static void Traval(DataQuery &dataQuery, Cond &cond); 128 static void GetCond(DataQuery &dataQuery, Cond &cond); 129 static void GetCondEqualValue(DataQuery &dataQuery, Cond &cond); 130 static void GetCondNotEqualValue(DataQuery &dataQuery, Cond &cond); 131 static void GetCondLessThanValue(DataQuery &dataQuery, Cond &cond); 132 static void GetCondLessEqualValue(DataQuery &dataQuery, Cond &cond); 133 static void GetCondGreatThanValue(DataQuery &dataQuery, Cond &cond); 134 static void GetCondGreatEqualValue(DataQuery &dataQuery, Cond &cond); 135 static void GetCondStartWithValue(DataQuery &dataQuery, Cond &cond); [all …]
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/ |
D | mock_single_kv_store.h | 52 virtual Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override; 70 virtual Status GetResultSet(const DataQuery &query, 88 virtual Status GetCount(const DataQuery &query, int &result) const override; 286 …virtual Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &que… 298 …virtual Status SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &quer… 307 …virtual Status UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &qu…
|
D | mock_single_kv_store.cpp | 26 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() 37 const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() 47 Status MockSingleKvStore::GetCount(const DataQuery &query, int &result) const in GetCount() 156 const DataQuery &query, std::shared_ptr<KvStoreSyncCallback> syncCallback) in Sync() 161 …ingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() 166 …gleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery()
|
/base/notification/distributed_notification_service/services/test/moduletest/mock/include/ |
D | mock_single_kv_store.h | 52 virtual Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override; 70 …Status GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const ov… 87 virtual Status GetCount(const DataQuery &query, int &result) const override; 285 …virtual Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &que… 297 …virtual Status SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &quer… 306 …virtual Status UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &qu…
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/include/ |
D | event_db_helper.h | 45 void BuildQuery(DataQuery& query, const std::map<std::string, std::string>& condMap = {}); 46 int QueryDb(const DataQuery& query, std::vector<Entry>& entries, const std::string& coll); 48 int DeleteDb(const DataQuery& query, const std::string& coll);
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
D | mock_single_kv_store.cpp | 26 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() 36 Status MockSingleKvStore::GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &r… in GetResultSet() 46 Status MockSingleKvStore::GetCount(const DataQuery &query, int &result) const in GetCount() 154 …ngleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query, in Sync() 160 …ingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() 165 …gleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery()
|
/base/notification/distributed_notification_service/services/test/moduletest/mock/ |
D | mock_single_kv_store.cpp | 26 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() 36 Status MockSingleKvStore::GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &r… in GetResultSet() 46 Status MockSingleKvStore::GetCount(const DataQuery &query, int &result) const in GetCount() 155 …ngleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query, in Sync() 161 …ingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() 166 …gleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
D | event_db_helper.cpp | 133 void EventDbHelper::BuildQuery(DataQuery& query, const std::map<std::string, std::string>& condMap) in BuildQuery() 147 DataQuery query; in QueryPluginStatsEvent() 173 int res = QueryDb(DataQuery(), entries, coll); in QuerySysUsageEvent() 191 int EventDbHelper::QueryDb(const DataQuery& query, std::vector<Entry>& entries, const std::string& … in QueryDb() 207 return DeleteDb(DataQuery(), PLUGIN_STATS_COLL); in DeletePluginStatsEvent() 212 return DeleteDb(DataQuery(), coll); in DeleteSysUsageEvent() 215 int EventDbHelper::DeleteDb(const DataQuery& query, const std::string& coll) in DeleteDb()
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/include/ |
D | mock_single_kv_store.h | 51 virtual Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override; 69 …Status GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const ov… 86 virtual Status GetCount(const DataQuery &query, int &result) const override; 285 const DataQuery &query, std::shared_ptr<KvStoreSyncCallback> syncCallback) override; 296 …virtual Status SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &quer… 305 …virtual Status UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &qu…
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
D | mock_single_kv_store.cpp | 117 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() 127 Status MockSingleKvStore::GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &r… in GetResultSet() 137 Status MockSingleKvStore::GetCount(const DataQuery &query, int &result) const in GetCount() 264 const DataQuery &query, std::shared_ptr<KvStoreSyncCallback> syncCallback) in Sync() 269 …ingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() 274 …gleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery()
|
/base/hiviewdfx/hiview/base/event_store/ |
D | sys_event_query_wrapper.cpp | 104 DataQuery dataQuery; in Execute() 130 bool SysEventQueryWrapper::IsConditionCntValid(const DataQuery& query, const DbQueryTag& tag) in IsConditionCntValid() 140 bool SysEventQueryWrapper::IsQueryCntLimitValid(const DataQuery& query, const DbQueryTag& tag, cons… in IsQueryCntLimitValid() 154 bool SysEventQueryWrapper::IsQueryCostTimeValid(const DataQuery& query, const DbQueryTag& tag, cons… in IsQueryCostTimeValid() 190 bool SysEventQueryWrapper::IsQueryFrequenceValid(const DataQuery& query, const DbQueryTag& tag, in IsQueryFrequenceValid()
|
D | sys_event_query.cpp | 257 void Cond::GetCondEqualValue(DataQuery &dataQuery, Cond &cond) in GetCondEqualValue() 278 void Cond::GetCondNotEqualValue(DataQuery &dataQuery, Cond &cond) in GetCondNotEqualValue() 299 void Cond::GetCondLessThanValue(DataQuery &dataQuery, Cond &cond) in GetCondLessThanValue() 319 void Cond::GetCondLessEqualValue(DataQuery &dataQuery, Cond &cond) in GetCondLessEqualValue() 339 void Cond::GetCondGreatThanValue(DataQuery &dataQuery, Cond &cond) in GetCondGreatThanValue() 359 void Cond::GetCondGreatEqualValue(DataQuery &dataQuery, Cond &cond) in GetCondGreatEqualValue() 379 void Cond::GetCondStartWithValue(DataQuery &dataQuery, Cond &cond) in GetCondStartWithValue() 387 void Cond::GetCondNoStartWithValue(DataQuery &dataQuery, Cond &cond) in GetCondNoStartWithValue() 395 void Cond::GetCond(DataQuery &dataQuery, Cond &cond) in GetCond() 441 void Cond::Traval(DataQuery &dataQuery, Cond &cond) in Traval() [all …]
|
D | sys_event_dao.cpp | 105 DataQuery dataQuery; in Delete()
|
/base/hiviewdfx/hiview/base/ |
D | libhiviewbase.map | 93 "OHOS::HiviewDFX::DataQuery::DataQuery()"; 94 "OHOS::HiviewDFX::DataQuery::~DataQuery()"; 98 …"OHOS::HiviewDFX::DocStore::GetEntriesWithQuery(OHOS::HiviewDFX::DataQuery const&, std::__h::vecto… 99 "OHOS::HiviewDFX::DocStore::Delete(OHOS::HiviewDFX::DataQuery const&, char const*)"; 112 "OHOS::HiviewDFX::DataQuery::Limit(int, int)"; 116 …"OHOS::HiviewDFX::DataQuery::NotStartWith(std::__h::basic_string<char, std::__h::char_traits<char>… 117 …"OHOS::HiviewDFX::DataQuery::StartWith(std::__h::basic_string<char, std::__h::char_traits<char>, s… 118 "OHOS::HiviewDFX::DataQuery::And()"; 119 "OHOS::HiviewDFX::DataQuery::Or()"; 120 "OHOS::HiviewDFX::DataQuery::BeginGroup()"; [all …]
|