-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/chenghuaWang/covalentBond i…
…nto main
- Loading branch information
Showing
4 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"id": 100, "script": "node_vd_1 = ThisGraph:createVirtualDeviceNode(0);\nnode_vd_2 = ThisGraph:createVirtualDeviceNode(1);\nnode_vd_1:addQuery(\"SELECT * FROM runoob_tbl;\");\nnode_vd_2:addQuery(\"SELECT * FROM myel;\");\n\nnode_vd_combine = ThisGraph:createCombineNode(Cb.F.PackedStringToVec(\"runoob_id\", \"runoob_id\"), \"NewTable\");\nnode_vd_1:PointTo(Cb.F.refNode(node_vd_combine));\nnode_vd_2:PointTo(Cb.F.refNode(node_vd_combine));\n\nThisGraph:addCacheServer(ThisGraph:createRedisCachingNode(0));\n"} | ||
{"id": 100, "script": "function testJudgeMethod(rowOfTable)\n if rowOfTable:atPtr(0, 0):isInt() then\n if Cb.F.value(rowOfTable:atPtr(0, 0)) < 10 then\n return true;\n end\n end\n return false;\nend\n\nfunction testModifyMethod(rowOfTable)\n rowOfTable:setPtrAt(0, 0, ThisGraph:createKVCell(Cb.F.value(rowOfTable:atPtr(0, 0)) + 1));\n return rowOfTable;\nend\n\nnode_vd_1 = ThisGraph:createVirtualDeviceNode(0);\nnode_vd_2 = ThisGraph:createVirtualDeviceNode(1);\nnode_vd_1:addQuery(\"SELECT * FROM runoob_tbl;\");\nnode_vd_2:addQuery(\"SELECT * FROM myel;\");\n\nnode_vd_combine = ThisGraph:createCombineNode(Cb.F.PackedStringToVec(\"runoob_id\", \"runoob_id\"), \"NewTable\");\nnode_vd_1:PointTo(Cb.F.refNode(node_vd_combine));\nnode_vd_2:PointTo(Cb.F.refNode(node_vd_combine));\nnode_vd_filter = ThisGraph:createFilterNode(testJudgeMethod, testModifyMethod);\nnode_vd_combine:PointTo(Cb.F.refNode(node_vd_filter))\n\nThisGraph:addCacheServer(ThisGraph:createRedisCachingNode(0));\n"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters