This file contains hidden or 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
| //////////////////////////////////////////////////////////////////////////////// | |
| // Copyright (c) 2016 Aalekh Nigam | |
| // | |
| // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
| // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
| //////////////////////////////////////////////////////////////////////////////// | |
| // Sample Implementation of Map/Reduce over hpx. | |
| #include <hpx/hpx.hpp> |
This file contains hidden or 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
| #include "iostream" | |
| #include <set> | |
| #include "vector" | |
| #include "string" | |
| #include <boost/algorithm/string.hpp> | |
| #include "map" | |
| #include <sstream> | |
| using namespace std; |
This file contains hidden or 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
| { | |
| "type" : "create", | |
| "database-name" : "database", | |
| "table-name" : "table", | |
| "value" : "column-name", //This is key to retrieve | |
| "key" : "key-name", | |
| "key_value" : "compare_key_name" | |
| } |
This file contains hidden or 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
| #include <iostream> | |
| #include <iterator> | |
| #include <regex> | |
| #include <queue> | |
| #include <thread> | |
| #include <assert.h> | |
| #include <string.h> | |
| #include "cpp-hiredis-cluster/include/hirediscommand.h" |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <netinet/in.h> | |
| #include <velocypack/vpack.h> | |
| #define PORT_NO 3033 | |
| #define BUFFER_SIZE 1024 | |
| using namespace arangodb::velocypack; |
This file contains hidden or 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
| #include <velocypack/vpack.h> | |
| #include <iostream> | |
| using namespace arangodb::velocypack; | |
| using namespace std; | |
| struct vparser{ | |
| int a; | |
| string c; | |
| }; |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <map> | |
| #include <string> | |
| #include "iostream" | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <sys/types.h> | |
| #include <arpa/inet.h> | |
| #include <sys/socket.h> |
This file contains hidden or 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
| #include <iostream> | |
| #include <queue> | |
| #include <vector> | |
| using namespace std; | |
| class Boxer{ | |
| public: | |
| int a; | |
| int b; | |
| }; | |
| struct Comp{ |
This file contains hidden or 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
| #include <iostream> | |
| #include <queue> | |
| #include <vector> | |
| using namespace std; | |
| class Boxer{ | |
| public: | |
| string name; | |
| int strength; | |
| }; | |
| struct Comp{ |
This file contains hidden or 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
| #include <iostream> | |
| #include <string> | |
| #include "velocypack/vpack.h" | |
| #include <stdbool.h> | |
| using namespace arangodb::velocypack; | |
| using namespace std; | |
| int main() { | |