Home
last modified time | relevance | path

Searched refs:singlePath (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/src/
H A Dprojection_tree.cpp22 for (size_t j = 0; j < singlePath.size(); j++) { in ParseSinglePathToTree()
23 if (node->sonNode[singlePath[j]] != nullptr) { in ParseSinglePathToTree()
24 node = node->sonNode[singlePath[j]]; in ParseSinglePathToTree()
25 if (j < singlePath.size() - 1 && node->isDeepest) { in ParseSinglePathToTree()
43 node->sonNode[singlePath[j]] = tempNode; in ParseSinglePathToTree()
44 node = node->sonNode[singlePath[j]]; in ParseSinglePathToTree()
56 for (auto singlePath : path) { in ParseTree() local
58 int errCode = ParseSinglePathToTree(node, singlePath); in ParseTree()
69 for (size_t i = 0; i < singlePath.size(); i++) { in SearchTree()
70 if (node->sonNode[singlePath[i]] != nullptr) { in SearchTree()
[all …]
H A Dresult_set.cpp188 int ResultSet::CheckCutNode(JsonObject *node, std::vector<std::string> singlePath, in CheckCutNode() argument
197 singlePath.emplace_back(nodeInstance.GetItemField()); in CheckCutNode()
199 bool isMatch = context_->projectionTree.SearchTree(singlePath, index); in CheckCutNode()
202 allCutPath.emplace_back(singlePath); in CheckCutNode()
206 CheckCutNode(&nodeChiled, singlePath, allCutPath); in CheckCutNode()
208 singlePath.pop_back(); in CheckCutNode()
254 std::vector<std::string> singlePath; in CutJsonBranch() local
257 errCode = CheckCutNode(&cjsonObjChild, singlePath, allCutPath); in CutJsonBranch()
H A Dresult_set_common.cpp26 for (const auto &singlePath : context->projectionPath) { in InitResultSet() local
27 …if (singlePath[0] == KEY_ID && context->viewType == true) { // projection has Id and viewType is t… in InitResultSet()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/common/src/
H A Djson_common.cpp208 int JsonCommon::ParseNode(JsonObject &node, std::vector<std::string> singlePath, in ParseNode() argument
219 singlePath.insert(singlePath.end(), allFieldsName.begin(), allFieldsName.end()); in ParseNode()
224 singlePath.insert(singlePath.end(), allFieldsName.begin(), allFieldsName.end()); in ParseNode()
228 int ret = ParseNode(nodeNew, singlePath, resultPath, false); in ParseNode()
233 resultPath.emplace_back(singlePath); in ParseNode()
236 singlePath.pop_back(); in ParseNode()
247 std::vector<std::string> singlePath; in ParsePath() local
248 errCode = ParseNode(projectionJson, singlePath, resultPath, true); in ParsePath()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/include/
H A Dprojection_tree.h45 bool SearchTree(std::vector<std::string> &singlePath, size_t &index);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/common/include/
H A Djson_common.h33 static int ParseNode(JsonObject &Node, std::vector<std::string> singlePath,