{"action":"created","comment":{"url":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/comments/205106696","pull_request_review_id":140308673,"id":205106696,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTEwNjY5Ng==","diff_hunk":"@@ -0,0 +1,263 @@\n+/*\n+ * Copyright © 2014 - 2018 Leipzig University (Database Research Group)\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.gradoop.benchmark.cypher;\n+\n+import org.apache.commons.cli.CommandLine;\n+import org.apache.commons.io.FileUtils;\n+import org.apache.flink.api.common.ProgramDescription;\n+import org.apache.flink.api.java.ExecutionEnvironment;\n+import org.apache.hadoop.conf.Configuration;\n+import org.gradoop.benchmark.subgraph.SubgraphBenchmark;\n+import org.gradoop.examples.AbstractRunner;\n+import org.gradoop.flink.io.api.DataSink;\n+import org.gradoop.flink.io.api.DataSource;\n+import org.gradoop.flink.io.impl.csv.indexed.IndexedCSVDataSource;\n+import org.gradoop.flink.io.impl.json.JSONDataSink;\n+import org.gradoop.flink.model.api.epgm.GraphCollection;\n+import org.gradoop.flink.model.api.epgm.LogicalGraph;\n+import org.gradoop.flink.model.impl.operators.matching.common.statistics.GraphStatistics;\n+import org.gradoop.flink.model.impl.operators.matching.common.statistics.GraphStatisticsHDFSReader;\n+import org.gradoop.flink.util.GradoopFlinkConfig;\n+\n+import java.io.File;\n+import java.io.IOException;\n+import java.io.PrintWriter;\n+import java.util.concurrent.TimeUnit;\n+\n+/**\n+ * A dedicated program for parametrized graph cypher benchmark.\n+ */\n+public class CypherBenchmark extends AbstractRunner implements ProgramDescription {\n+  /**\n+   * Option to declare path to input graph\n+   */\n+  private static final String OPTION_INPUT_PATH = \"i\";\n+  /**\n+   * Option to declare path to output graph\n+   */\n+  private static final String OPTION_OUTPUT_PATH = \"o\";\n+  /**\n+   * Option do declare path to statistics\n+   */\n+  private static final String OPTION_STATISTICS_PATH = \"s\";\n+  /**\n+   * Option to declare path to statistics csv file\n+   */\n+  private static final String OPTION_CSV_PATH = \"c\";\n+  /**\n+   * Option to declare verification\n+   */\n+  private static final String OPTION_QUERY = \"q\";\n+  /**\n+   * Option for used first name in query.\n+   */\n+  private static final String OPTION_FIRST_NAME = \"n\";\n+  /**\n+   * Used input path\n+   */\n+  private static String INPUT_PATH;\n+  /**\n+   * Used output path\n+   */\n+  private static String OUTPUT_PATH;\n+  /**\n+   * Used to indicate if statistics are used\n+   */\n+  private static boolean HAS_STATISTICS;\n+  /**\n+   * Used for statistics path\n+   */\n+  private static String STATISTICS_INPUT_PATH;\n+  /**\n+   * Used csv path\n+   */\n+  private static String CSV_PATH;\n+  /**\n+   * Used query\n+   */\n+  private static String QUERY;\n+  /**\n+   * Used first name for query (q1,q2,q3)\n+   */\n+  private static String FIRST_NAME;\n+\n+  static {\n+    OPTIONS.addOption(OPTION_INPUT_PATH, \"input\", true,\n+      \"Path to source files.\");","path":"gradoop-examples/src/main/java/org/gradoop/benchmark/cypher/CypherBenchmark.java","position":99,"original_position":99,"commit_id":"72c76da01bc230c3222d652587991386d97e1169","original_commit_id":"72c76da01bc230c3222d652587991386d97e1169","user":{"login":"ChrizZz110","id":18614530,"node_id":"MDQ6VXNlcjE4NjE0NTMw","avatar_url":"https://avatars1.githubusercontent.com/u/18614530?v=4","gravatar_id":"","url":"https://api.github.com/users/ChrizZz110","html_url":"https://github.com/ChrizZz110","followers_url":"https://api.github.com/users/ChrizZz110/followers","following_url":"https://api.github.com/users/ChrizZz110/following{/other_user}","gists_url":"https://api.github.com/users/ChrizZz110/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrizZz110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrizZz110/subscriptions","organizations_url":"https://api.github.com/users/ChrizZz110/orgs","repos_url":"https://api.github.com/users/ChrizZz110/repos","events_url":"https://api.github.com/users/ChrizZz110/events{/privacy}","received_events_url":"https://api.github.com/users/ChrizZz110/received_events","type":"User","site_admin":false},"body":"add in the description (also in JavaDoc above of `OPTION_INPUT_PATH`) that only a IndexedCsv is valid.","created_at":"2018-07-25T13:26:28Z","updated_at":"2018-07-25T13:40:47Z","html_url":"https://github.com/dbs-leipzig/gradoop/pull/904#discussion_r205106696","pull_request_url":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/904","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/comments/205106696"},"html":{"href":"https://github.com/dbs-leipzig/gradoop/pull/904#discussion_r205106696"},"pull_request":{"href":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/904"}}},"pull_request":{"url":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/904","id":203546385,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNTQ2Mzg1","html_url":"https://github.com/dbs-leipzig/gradoop/pull/904","diff_url":"https://github.com/dbs-leipzig/gradoop/pull/904.diff","patch_url":"https://github.com/dbs-leipzig/gradoop/pull/904.patch","issue_url":"https://api.github.com/repos/dbs-leipzig/gradoop/issues/904","number":904,"state":"open","locked":false,"title":"[#794] include new benchmark classes","user":{"login":"galpha","id":4004865,"node_id":"MDQ6VXNlcjQwMDQ4NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/4004865?v=4","gravatar_id":"","url":"https://api.github.com/users/galpha","html_url":"https://github.com/galpha","followers_url":"https://api.github.com/users/galpha/followers","following_url":"https://api.github.com/users/galpha/following{/other_user}","gists_url":"https://api.github.com/users/galpha/gists{/gist_id}","starred_url":"https://api.github.com/users/galpha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galpha/subscriptions","organizations_url":"https://api.github.com/users/galpha/orgs","repos_url":"https://api.github.com/users/galpha/repos","events_url":"https://api.github.com/users/galpha/events{/privacy}","received_events_url":"https://api.github.com/users/galpha/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-24T14:27:22Z","updated_at":"2018-07-25T13:40:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6a10eeebffe831c50736f24924504394f17c97c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/904/commits","review_comments_url":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/904/comments","review_comment_url":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dbs-leipzig/gradoop/issues/904/comments","statuses_url":"https://api.github.com/repos/dbs-leipzig/gradoop/statuses/72c76da01bc230c3222d652587991386d97e1169","head":{"label":"galpha:#794_benchmark","ref":"#794_benchmark","sha":"72c76da01bc230c3222d652587991386d97e1169","user":{"login":"galpha","id":4004865,"node_id":"MDQ6VXNlcjQwMDQ4NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/4004865?v=4","gravatar_id":"","url":"https://api.github.com/users/galpha","html_url":"https://github.com/galpha","followers_url":"https://api.github.com/users/galpha/followers","following_url":"https://api.github.com/users/galpha/following{/other_user}","gists_url":"https://api.github.com/users/galpha/gists{/gist_id}","starred_url":"https://api.github.com/users/galpha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galpha/subscriptions","organizations_url":"https://api.github.com/users/galpha/orgs","repos_url":"https://api.github.com/users/galpha/repos","events_url":"https://api.github.com/users/galpha/events{/privacy}","received_events_url":"https://api.github.com/users/galpha/received_events","type":"User","site_admin":false},"repo":{"id":64219887,"node_id":"MDEwOlJlcG9zaXRvcnk2NDIxOTg4Nw==","name":"gradoop","full_name":"galpha/gradoop","owner":{"login":"galpha","id":4004865,"node_id":"MDQ6VXNlcjQwMDQ4NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/4004865?v=4","gravatar_id":"","url":"https://api.github.com/users/galpha","html_url":"https://github.com/galpha","followers_url":"https://api.github.com/users/galpha/followers","following_url":"https://api.github.com/users/galpha/following{/other_user}","gists_url":"https://api.github.com/users/galpha/gists{/gist_id}","starred_url":"https://api.github.com/users/galpha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galpha/subscriptions","organizations_url":"https://api.github.com/users/galpha/orgs","repos_url":"https://api.github.com/users/galpha/repos","events_url":"https://api.github.com/users/galpha/events{/privacy}","received_events_url":"https://api.github.com/users/galpha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/galpha/gradoop","description":"Distributed Graph Analytics with Apache Flink","fork":true,"url":"https://api.github.com/repos/galpha/gradoop","forks_url":"https://api.github.com/repos/galpha/gradoop/forks","keys_url":"https://api.github.com/repos/galpha/gradoop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/galpha/gradoop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/galpha/gradoop/teams","hooks_url":"https://api.github.com/repos/galpha/gradoop/hooks","issue_events_url":"https://api.github.com/repos/galpha/gradoop/issues/events{/number}","events_url":"https://api.github.com/repos/galpha/gradoop/events","assignees_url":"https://api.github.com/repos/galpha/gradoop/assignees{/user}","branches_url":"https://api.github.com/repos/galpha/gradoop/branches{/branch}","tags_url":"https://api.github.com/repos/galpha/gradoop/tags","blobs_url":"https://api.github.com/repos/galpha/gradoop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/galpha/gradoop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/galpha/gradoop/git/refs{/sha}","trees_url":"https://api.github.com/repos/galpha/gradoop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/galpha/gradoop/statuses/{sha}","languages_url":"https://api.github.com/repos/galpha/gradoop/languages","stargazers_url":"https://api.github.com/repos/galpha/gradoop/stargazers","contributors_url":"https://api.github.com/repos/galpha/gradoop/contributors","subscribers_url":"https://api.github.com/repos/galpha/gradoop/subscribers","subscription_url":"https://api.github.com/repos/galpha/gradoop/subscription","commits_url":"https://api.github.com/repos/galpha/gradoop/commits{/sha}","git_commits_url":"https://api.github.com/repos/galpha/gradoop/git/commits{/sha}","comments_url":"https://api.github.com/repos/galpha/gradoop/comments{/number}","issue_comment_url":"https://api.github.com/repos/galpha/gradoop/issues/comments{/number}","contents_url":"https://api.github.com/repos/galpha/gradoop/contents/{+path}","compare_url":"https://api.github.com/repos/galpha/gradoop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/galpha/gradoop/merges","archive_url":"https://api.github.com/repos/galpha/gradoop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/galpha/gradoop/downloads","issues_url":"https://api.github.com/repos/galpha/gradoop/issues{/number}","pulls_url":"https://api.github.com/repos/galpha/gradoop/pulls{/number}","milestones_url":"https://api.github.com/repos/galpha/gradoop/milestones{/number}","notifications_url":"https://api.github.com/repos/galpha/gradoop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/galpha/gradoop/labels{/name}","releases_url":"https://api.github.com/repos/galpha/gradoop/releases{/id}","deployments_url":"https://api.github.com/repos/galpha/gradoop/deployments","created_at":"2016-07-26T12:34:27Z","updated_at":"2018-07-24T14:07:32Z","pushed_at":"2018-07-24T14:28:56Z","git_url":"git://github.com/galpha/gradoop.git","ssh_url":"git@github.com:galpha/gradoop.git","clone_url":"https://github.com/galpha/gradoop.git","svn_url":"https://github.com/galpha/gradoop","homepage":"http://www.gradoop.org","size":60156,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dbs-leipzig:develop","ref":"develop","sha":"68efc3d7f2037e02d8e0e0062096bcb9421ffdba","user":{"login":"dbs-leipzig","id":7394964,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczOTQ5NjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7394964?v=4","gravatar_id":"","url":"https://api.github.com/users/dbs-leipzig","html_url":"https://github.com/dbs-leipzig","followers_url":"https://api.github.com/users/dbs-leipzig/followers","following_url":"https://api.github.com/users/dbs-leipzig/following{/other_user}","gists_url":"https://api.github.com/users/dbs-leipzig/gists{/gist_id}","starred_url":"https://api.github.com/users/dbs-leipzig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbs-leipzig/subscriptions","organizations_url":"https://api.github.com/users/dbs-leipzig/orgs","repos_url":"https://api.github.com/users/dbs-leipzig/repos","events_url":"https://api.github.com/users/dbs-leipzig/events{/privacy}","received_events_url":"https://api.github.com/users/dbs-leipzig/received_events","type":"Organization","site_admin":false},"repo":{"id":26323526,"node_id":"MDEwOlJlcG9zaXRvcnkyNjMyMzUyNg==","name":"gradoop","full_name":"dbs-leipzig/gradoop","owner":{"login":"dbs-leipzig","id":7394964,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczOTQ5NjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7394964?v=4","gravatar_id":"","url":"https://api.github.com/users/dbs-leipzig","html_url":"https://github.com/dbs-leipzig","followers_url":"https://api.github.com/users/dbs-leipzig/followers","following_url":"https://api.github.com/users/dbs-leipzig/following{/other_user}","gists_url":"https://api.github.com/users/dbs-leipzig/gists{/gist_id}","starred_url":"https://api.github.com/users/dbs-leipzig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbs-leipzig/subscriptions","organizations_url":"https://api.github.com/users/dbs-leipzig/orgs","repos_url":"https://api.github.com/users/dbs-leipzig/repos","events_url":"https://api.github.com/users/dbs-leipzig/events{/privacy}","received_events_url":"https://api.github.com/users/dbs-leipzig/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dbs-leipzig/gradoop","description":"Distributed Graph Analytics with Apache Flink","fork":false,"url":"https://api.github.com/repos/dbs-leipzig/gradoop","forks_url":"https://api.github.com/repos/dbs-leipzig/gradoop/forks","keys_url":"https://api.github.com/repos/dbs-leipzig/gradoop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dbs-leipzig/gradoop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dbs-leipzig/gradoop/teams","hooks_url":"https://api.github.com/repos/dbs-leipzig/gradoop/hooks","issue_events_url":"https://api.github.com/repos/dbs-leipzig/gradoop/issues/events{/number}","events_url":"https://api.github.com/repos/dbs-leipzig/gradoop/events","assignees_url":"https://api.github.com/repos/dbs-leipzig/gradoop/assignees{/user}","branches_url":"https://api.github.com/repos/dbs-leipzig/gradoop/branches{/branch}","tags_url":"https://api.github.com/repos/dbs-leipzig/gradoop/tags","blobs_url":"https://api.github.com/repos/dbs-leipzig/gradoop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dbs-leipzig/gradoop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dbs-leipzig/gradoop/git/refs{/sha}","trees_url":"https://api.github.com/repos/dbs-leipzig/gradoop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dbs-leipzig/gradoop/statuses/{sha}","languages_url":"https://api.github.com/repos/dbs-leipzig/gradoop/languages","stargazers_url":"https://api.github.com/repos/dbs-leipzig/gradoop/stargazers","contributors_url":"https://api.github.com/repos/dbs-leipzig/gradoop/contributors","subscribers_url":"https://api.github.com/repos/dbs-leipzig/gradoop/subscribers","subscription_url":"https://api.github.com/repos/dbs-leipzig/gradoop/subscription","commits_url":"https://api.github.com/repos/dbs-leipzig/gradoop/commits{/sha}","git_commits_url":"https://api.github.com/repos/dbs-leipzig/gradoop/git/commits{/sha}","comments_url":"https://api.github.com/repos/dbs-leipzig/gradoop/comments{/number}","issue_comment_url":"https://api.github.com/repos/dbs-leipzig/gradoop/issues/comments{/number}","contents_url":"https://api.github.com/repos/dbs-leipzig/gradoop/contents/{+path}","compare_url":"https://api.github.com/repos/dbs-leipzig/gradoop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dbs-leipzig/gradoop/merges","archive_url":"https://api.github.com/repos/dbs-leipzig/gradoop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dbs-leipzig/gradoop/downloads","issues_url":"https://api.github.com/repos/dbs-leipzig/gradoop/issues{/number}","pulls_url":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls{/number}","milestones_url":"https://api.github.com/repos/dbs-leipzig/gradoop/milestones{/number}","notifications_url":"https://api.github.com/repos/dbs-leipzig/gradoop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dbs-leipzig/gradoop/labels{/name}","releases_url":"https://api.github.com/repos/dbs-leipzig/gradoop/releases{/id}","deployments_url":"https://api.github.com/repos/dbs-leipzig/gradoop/deployments","created_at":"2014-11-07T14:42:45Z","updated_at":"2018-07-24T12:46:24Z","pushed_at":"2018-07-25T12:48:24Z","git_url":"git://github.com/dbs-leipzig/gradoop.git","ssh_url":"git@github.com:dbs-leipzig/gradoop.git","clone_url":"https://github.com/dbs-leipzig/gradoop.git","svn_url":"https://github.com/dbs-leipzig/gradoop","homepage":"http://www.gradoop.org","size":13858,"stargazers_count":121,"watchers_count":121,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":54,"mirror_url":null,"archived":false,"open_issues_count":100,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":54,"open_issues":100,"watchers":121,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/904"},"html":{"href":"https://github.com/dbs-leipzig/gradoop/pull/904"},"issue":{"href":"https://api.github.com/repos/dbs-leipzig/gradoop/issues/904"},"comments":{"href":"https://api.github.com/repos/dbs-leipzig/gradoop/issues/904/comments"},"review_comments":{"href":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/904/comments"},"review_comment":{"href":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dbs-leipzig/gradoop/pulls/904/commits"},"statuses":{"href":"https://api.github.com/repos/dbs-leipzig/gradoop/statuses/72c76da01bc230c3222d652587991386d97e1169"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ChrizZz110"}}