Home
last modified time | relevance | path

Searched refs:Cond (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/base/hiviewdfx/hiview/base/event_store/include/
H A Ddoc_query.h23 class Cond; variable
29 void And(const Cond& cond);
48 bool IsContainInnerCond(const InnerFieldStruct& innerField, const Cond& cond) const;
49 bool IsContainCond(const Cond& cond, const FieldValue& value) const;
50 bool IsInnerCond(const Cond& cond) const;
52 std::vector<Cond> innerConds_;
53 std::vector<Cond> extraConds_;
H A Dsys_event_query.h187 class DllExport Cond {
189 Cond(): op_(NONE), fieldValue_(0) {} in Cond() function
190 ~Cond() {} in ~Cond()
196 Cond &And(const std::string &col, Op op, const T &value) in And()
198 andConds_.emplace_back(Cond(col, op, value)); in And()
201 Cond &And(const Cond &cond);
208 static bool IsSimpleCond(const Cond &cond);
215 std::vector<Cond> andConds_;
275 SysEventQuery &Where(const Cond &cond);
283 SysEventQuery &And(const Cond &cond);
[all …]
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/test/unittest/common/
H A Devent_query_wrapper_builder_test.cpp44 EventStore::Cond condition;
60 EventStore::Cond condition;
75 EventStore::Cond condition;
91 EventStore::Cond condition;
107 EventStore::Cond condition;
123 EventStore::Cond condition;
139 EventStore::Cond condition;
155 EventStore::Cond condition;
H A Dsys_event_service_ohos_test.cpp325 EventStore::Cond cond;
365 EventStore::Cond cond;
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
H A Devent_query_wrapper_builder.h32 using ExtraInfoConditionMap = std::unordered_map<std::string, EventStore::Cond>;
36 bool ParseCondition(const std::string& condStr, EventStore::Cond& condition);
39 void SpliceConditionByLogic(EventStore::Cond& condition, const EventStore::Cond& subCond,
42 …bool ParseLogicCondition(const Json::Value& root, const std::string& logic, EventStore::Cond& cond…
43 bool ParseAndCondition(const Json::Value& root, EventStore::Cond& condition);
44 bool ParseQueryConditionJson(const Json::Value& root, EventStore::Cond& condition);
45 bool ParseQueryCondition(const std::string& condStr, EventStore::Cond& condition);
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
H A Devent_query_wrapper_builder.cpp51 bool ConditionParser::ParseCondition(const std::string& condStr, EventStore::Cond& condition) in ParseCondition()
54 EventStore::Cond cond; in ParseCondition()
88 void ConditionParser::SpliceConditionByLogic(EventStore::Cond& condition, const EventStore::Cond& s… in SpliceConditionByLogic()
97 EventStore::Cond& condition) in ParseLogicCondition()
104 EventStore::Cond subCondition; in ParseLogicCondition()
133 bool ConditionParser::ParseAndCondition(const Json::Value& root, EventStore::Cond& condition) in ParseAndCondition()
138 bool ConditionParser::ParseQueryConditionJson(const Json::Value& root, EventStore::Cond& condition) in ParseQueryConditionJson()
151 bool ConditionParser::ParseQueryCondition(const std::string& condStr, EventStore::Cond& condition) in ParseQueryCondition()
283 EventStore::Cond extraCond; in BuildCondition()
371 EventStore::Cond whereCond; in BuildQuery()
[all …]
/ohos5.0/base/hiviewdfx/hiview/base/event_store/test/unittest/common/
H A Dsys_event_dao_test.cpp660 Cond invalidCond;
662 Cond cond1("name", EQ, "event");
664 Cond cond2("name", NE, "event");
666 Cond cond3("num", LT, 0);
668 Cond cond4("num", LE, 0);
674 Cond cond7("name", SW, "event");
676 Cond cond8("name", NSW, "event");
700 Cond cond1("INT_VALUE", EQ, 1);
702 Cond cond2("DOU_VALUE", GT, 1.0);
706 Cond cond4("INT_VALUE", GE, 0);
[all …]
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/
H A Dfaultlog_database.cpp124 int32_t faultType, EventStore::Cond upperCaseCond, EventStore::Cond lowerCaseCond) in CreateQueries()
168 EventStore::Cond hiviewUidCond("uid_", EventStore::Op::EQ, static_cast<int64_t>(getuid())); in GetFaultInfoList()
169 EventStore::Cond uidUpperCond = hiviewUidCond.And("UID", EventStore::Op::EQ, id); in GetFaultInfoList()
170 EventStore::Cond uidLowerCond("uid_", EventStore::Op::EQ, id); in GetFaultInfoList()
207 EventStore::Cond hiviewUidCond("uid_", EventStore::Op::EQ, static_cast<int64_t>(getuid())); in IsFaultExist()
208 EventStore::Cond pidUpperCond = hiviewUidCond.And("PID", EventStore::Op::EQ, pid). in IsFaultExist()
210 EventStore::Cond pidLowerCond("pid_", EventStore::Op::EQ, pid); in IsFaultExist()
/ohos5.0/base/hiviewdfx/hiview/base/event_store/dao/
H A Dsys_event_query.cpp306 Cond &Cond::And(const Cond &cond) in And()
312 bool Cond::IsSimpleCond(const Cond &cond) in IsSimpleCond()
317 void Cond::Traval(DocQuery &docQuery, const Cond &cond) in Traval()
333 std::string Cond::ToString() const in ToString()
444 SysEventQuery &SysEventQuery::Where(const Cond &cond) in Where()
450 SysEventQuery &SysEventQuery::And(const Cond &cond) in And()
464 Cond::Traval(docQuery, cond_); in BuildDocQuery()
H A Ddoc_query.cpp28 void DocQuery::And(const Cond& cond) in And()
41 bool DocQuery::IsInnerCond(const Cond& cond) const in IsInnerCond()
50 bool DocQuery::IsContainCond(const Cond& cond, const FieldValue& value) const in IsContainCond()
74 bool DocQuery::IsContainInnerCond(const InnerFieldStruct& innerField, const Cond& cond) const in IsContainInnerCond()
/ohos5.0/base/hiviewdfx/hiview/plugins/event_store/event_export/task/export/
H A Devent_read_handler.cpp90 EventStore::Cond whereCond; in QuerySysEvent()
/ohos5.0/base/hiviewdfx/hiview/base/
H A Dlibhiviewbase.map254 "OHOS::HiviewDFX::EventStore::Cond::And(OHOS::HiviewDFX::EventStore::Cond const&)";
259 "OHOS::HiviewDFX::EventStore::SysEventQuery::And(OHOS::HiviewDFX::EventStore::Cond const&)";
261 … "OHOS::HiviewDFX::EventStore::SysEventQuery::Where(OHOS::HiviewDFX::EventStore::Cond const&)";