{"action":"created","comment":{"url":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/comments/43390746","id":43390746,"diff_hunk":"@@ -0,0 +1,447 @@\n+/**\n+ * Copyright (c) 2013 Yahoo! Inc. All rights reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n+ * use this file except in compliance with the License. You may obtain a copy of\n+ * 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, WITHOUT\n+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n+ * License for the specific language governing permissions and limitations under\n+ * the License. See accompanying LICENSE file.\n+ *\n+ * Submitted by Chrisjan Matser on 10/11/2010.\n+ */\n+package com.yahoo.ycsb.db;\n+\n+import com.datastax.driver.core.Cluster;\n+import com.datastax.driver.core.ColumnDefinitions;\n+import com.datastax.driver.core.ConsistencyLevel;\n+import com.datastax.driver.core.Host;\n+import com.datastax.driver.core.HostDistance;\n+import com.datastax.driver.core.Metadata;\n+import com.datastax.driver.core.ResultSet;\n+import com.datastax.driver.core.Row;\n+import com.datastax.driver.core.Session;\n+import com.datastax.driver.core.SimpleStatement;\n+import com.datastax.driver.core.Statement;\n+import com.datastax.driver.core.querybuilder.Insert;\n+import com.datastax.driver.core.querybuilder.QueryBuilder;\n+import com.datastax.driver.core.querybuilder.Select;\n+import com.yahoo.ycsb.ByteArrayByteIterator;\n+import com.yahoo.ycsb.ByteIterator;\n+import com.yahoo.ycsb.DB;\n+import com.yahoo.ycsb.DBException;\n+\n+import java.nio.ByteBuffer;\n+import java.util.HashMap;\n+import java.util.Map;\n+import java.util.Set;\n+import java.util.Vector;\n+import java.util.concurrent.atomic.AtomicInteger;\n+\n+\n+/**\n+ * Tested with Cassandra 2.0, CQL client for YCSB framework","path":"cassandra2/src/main/java/com/yahoo/ycsb/db/CassandraCQLClient.java","position":48,"original_position":48,"commit_id":"ebe9767bd8832a20007a8821959600af136fb2af","original_commit_id":"ebe9767bd8832a20007a8821959600af136fb2af","user":{"login":"cmccoy","id":564884,"avatar_url":"https://avatars.githubusercontent.com/u/564884?v=3","gravatar_id":"","url":"https://api.github.com/users/cmccoy","html_url":"https://github.com/cmccoy","followers_url":"https://api.github.com/users/cmccoy/followers","following_url":"https://api.github.com/users/cmccoy/following{/other_user}","gists_url":"https://api.github.com/users/cmccoy/gists{/gist_id}","starred_url":"https://api.github.com/users/cmccoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmccoy/subscriptions","organizations_url":"https://api.github.com/users/cmccoy/orgs","repos_url":"https://api.github.com/users/cmccoy/repos","events_url":"https://api.github.com/users/cmccoy/events{/privacy}","received_events_url":"https://api.github.com/users/cmccoy/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-10-29T14:27:32Z","updated_at":"2015-10-29T14:27:32Z","html_url":"https://github.com/brianfrankcooper/YCSB/pull/454#discussion_r43390746","pull_request_url":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/454","_links":{"self":{"href":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/comments/43390746"},"html":{"href":"https://github.com/brianfrankcooper/YCSB/pull/454#discussion_r43390746"},"pull_request":{"href":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/454"}}},"pull_request":{"url":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/454","id":49099451,"html_url":"https://github.com/brianfrankcooper/YCSB/pull/454","diff_url":"https://github.com/brianfrankcooper/YCSB/pull/454.diff","patch_url":"https://github.com/brianfrankcooper/YCSB/pull/454.patch","issue_url":"https://api.github.com/repos/brianfrankcooper/YCSB/issues/454","number":454,"state":"open","locked":false,"title":"Adds a Cassandra 2 CQL binding.","user":{"login":"cmccoy","id":564884,"avatar_url":"https://avatars.githubusercontent.com/u/564884?v=3","gravatar_id":"","url":"https://api.github.com/users/cmccoy","html_url":"https://github.com/cmccoy","followers_url":"https://api.github.com/users/cmccoy/followers","following_url":"https://api.github.com/users/cmccoy/following{/other_user}","gists_url":"https://api.github.com/users/cmccoy/gists{/gist_id}","starred_url":"https://api.github.com/users/cmccoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmccoy/subscriptions","organizations_url":"https://api.github.com/users/cmccoy/orgs","repos_url":"https://api.github.com/users/cmccoy/repos","events_url":"https://api.github.com/users/cmccoy/events{/privacy}","received_events_url":"https://api.github.com/users/cmccoy/received_events","type":"User","site_admin":false},"body":"I couldn't find a way to make the Cassandra CQL driver work with both versions <2.0 and >2.1, so I added a separate binding, which is almost identical to the `CassandraCQLBinding` in `cassandra/`.\r\n\r\nAlso adds integration tests for the new binding, and some brief READMEs","created_at":"2015-10-29T05:09:11Z","updated_at":"2015-10-29T14:27:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a4f81a1787b5d6b6c5de65df5f251df29bf87f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/454/commits","review_comments_url":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/454/comments","review_comment_url":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brianfrankcooper/YCSB/issues/454/comments","statuses_url":"https://api.github.com/repos/brianfrankcooper/YCSB/statuses/ebe9767bd8832a20007a8821959600af136fb2af","head":{"label":"cmccoy:cassandra2","ref":"cassandra2","sha":"ebe9767bd8832a20007a8821959600af136fb2af","user":{"login":"cmccoy","id":564884,"avatar_url":"https://avatars.githubusercontent.com/u/564884?v=3","gravatar_id":"","url":"https://api.github.com/users/cmccoy","html_url":"https://github.com/cmccoy","followers_url":"https://api.github.com/users/cmccoy/followers","following_url":"https://api.github.com/users/cmccoy/following{/other_user}","gists_url":"https://api.github.com/users/cmccoy/gists{/gist_id}","starred_url":"https://api.github.com/users/cmccoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmccoy/subscriptions","organizations_url":"https://api.github.com/users/cmccoy/orgs","repos_url":"https://api.github.com/users/cmccoy/repos","events_url":"https://api.github.com/users/cmccoy/events{/privacy}","received_events_url":"https://api.github.com/users/cmccoy/received_events","type":"User","site_admin":false},"repo":{"id":33616914,"name":"YCSB","full_name":"cmccoy/YCSB","owner":{"login":"cmccoy","id":564884,"avatar_url":"https://avatars.githubusercontent.com/u/564884?v=3","gravatar_id":"","url":"https://api.github.com/users/cmccoy","html_url":"https://github.com/cmccoy","followers_url":"https://api.github.com/users/cmccoy/followers","following_url":"https://api.github.com/users/cmccoy/following{/other_user}","gists_url":"https://api.github.com/users/cmccoy/gists{/gist_id}","starred_url":"https://api.github.com/users/cmccoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmccoy/subscriptions","organizations_url":"https://api.github.com/users/cmccoy/orgs","repos_url":"https://api.github.com/users/cmccoy/repos","events_url":"https://api.github.com/users/cmccoy/events{/privacy}","received_events_url":"https://api.github.com/users/cmccoy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cmccoy/YCSB","description":"Yahoo! Cloud Serving Benchmark","fork":true,"url":"https://api.github.com/repos/cmccoy/YCSB","forks_url":"https://api.github.com/repos/cmccoy/YCSB/forks","keys_url":"https://api.github.com/repos/cmccoy/YCSB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmccoy/YCSB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmccoy/YCSB/teams","hooks_url":"https://api.github.com/repos/cmccoy/YCSB/hooks","issue_events_url":"https://api.github.com/repos/cmccoy/YCSB/issues/events{/number}","events_url":"https://api.github.com/repos/cmccoy/YCSB/events","assignees_url":"https://api.github.com/repos/cmccoy/YCSB/assignees{/user}","branches_url":"https://api.github.com/repos/cmccoy/YCSB/branches{/branch}","tags_url":"https://api.github.com/repos/cmccoy/YCSB/tags","blobs_url":"https://api.github.com/repos/cmccoy/YCSB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmccoy/YCSB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmccoy/YCSB/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmccoy/YCSB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmccoy/YCSB/statuses/{sha}","languages_url":"https://api.github.com/repos/cmccoy/YCSB/languages","stargazers_url":"https://api.github.com/repos/cmccoy/YCSB/stargazers","contributors_url":"https://api.github.com/repos/cmccoy/YCSB/contributors","subscribers_url":"https://api.github.com/repos/cmccoy/YCSB/subscribers","subscription_url":"https://api.github.com/repos/cmccoy/YCSB/subscription","commits_url":"https://api.github.com/repos/cmccoy/YCSB/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmccoy/YCSB/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmccoy/YCSB/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmccoy/YCSB/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmccoy/YCSB/contents/{+path}","compare_url":"https://api.github.com/repos/cmccoy/YCSB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmccoy/YCSB/merges","archive_url":"https://api.github.com/repos/cmccoy/YCSB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmccoy/YCSB/downloads","issues_url":"https://api.github.com/repos/cmccoy/YCSB/issues{/number}","pulls_url":"https://api.github.com/repos/cmccoy/YCSB/pulls{/number}","milestones_url":"https://api.github.com/repos/cmccoy/YCSB/milestones{/number}","notifications_url":"https://api.github.com/repos/cmccoy/YCSB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmccoy/YCSB/labels{/name}","releases_url":"https://api.github.com/repos/cmccoy/YCSB/releases{/id}","created_at":"2015-04-08T15:55:16Z","updated_at":"2015-04-08T15:55:17Z","pushed_at":"2015-10-29T05:05:01Z","git_url":"git://github.com/cmccoy/YCSB.git","ssh_url":"git@github.com:cmccoy/YCSB.git","clone_url":"https://github.com/cmccoy/YCSB.git","svn_url":"https://github.com/cmccoy/YCSB","homepage":"http://research.yahoo.com/Web_Information_Management/YCSB","size":29552,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"brianfrankcooper:master","ref":"master","sha":"8531c2c0a168d25d2668fc51d2f94b56b5bf1c74","user":{"login":"brianfrankcooper","id":247619,"avatar_url":"https://avatars.githubusercontent.com/u/247619?v=3","gravatar_id":"","url":"https://api.github.com/users/brianfrankcooper","html_url":"https://github.com/brianfrankcooper","followers_url":"https://api.github.com/users/brianfrankcooper/followers","following_url":"https://api.github.com/users/brianfrankcooper/following{/other_user}","gists_url":"https://api.github.com/users/brianfrankcooper/gists{/gist_id}","starred_url":"https://api.github.com/users/brianfrankcooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianfrankcooper/subscriptions","organizations_url":"https://api.github.com/users/brianfrankcooper/orgs","repos_url":"https://api.github.com/users/brianfrankcooper/repos","events_url":"https://api.github.com/users/brianfrankcooper/events{/privacy}","received_events_url":"https://api.github.com/users/brianfrankcooper/received_events","type":"User","site_admin":false},"repo":{"id":618492,"name":"YCSB","full_name":"brianfrankcooper/YCSB","owner":{"login":"brianfrankcooper","id":247619,"avatar_url":"https://avatars.githubusercontent.com/u/247619?v=3","gravatar_id":"","url":"https://api.github.com/users/brianfrankcooper","html_url":"https://github.com/brianfrankcooper","followers_url":"https://api.github.com/users/brianfrankcooper/followers","following_url":"https://api.github.com/users/brianfrankcooper/following{/other_user}","gists_url":"https://api.github.com/users/brianfrankcooper/gists{/gist_id}","starred_url":"https://api.github.com/users/brianfrankcooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianfrankcooper/subscriptions","organizations_url":"https://api.github.com/users/brianfrankcooper/orgs","repos_url":"https://api.github.com/users/brianfrankcooper/repos","events_url":"https://api.github.com/users/brianfrankcooper/events{/privacy}","received_events_url":"https://api.github.com/users/brianfrankcooper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brianfrankcooper/YCSB","description":"Yahoo! Cloud Serving Benchmark","fork":false,"url":"https://api.github.com/repos/brianfrankcooper/YCSB","forks_url":"https://api.github.com/repos/brianfrankcooper/YCSB/forks","keys_url":"https://api.github.com/repos/brianfrankcooper/YCSB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brianfrankcooper/YCSB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brianfrankcooper/YCSB/teams","hooks_url":"https://api.github.com/repos/brianfrankcooper/YCSB/hooks","issue_events_url":"https://api.github.com/repos/brianfrankcooper/YCSB/issues/events{/number}","events_url":"https://api.github.com/repos/brianfrankcooper/YCSB/events","assignees_url":"https://api.github.com/repos/brianfrankcooper/YCSB/assignees{/user}","branches_url":"https://api.github.com/repos/brianfrankcooper/YCSB/branches{/branch}","tags_url":"https://api.github.com/repos/brianfrankcooper/YCSB/tags","blobs_url":"https://api.github.com/repos/brianfrankcooper/YCSB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brianfrankcooper/YCSB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brianfrankcooper/YCSB/git/refs{/sha}","trees_url":"https://api.github.com/repos/brianfrankcooper/YCSB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brianfrankcooper/YCSB/statuses/{sha}","languages_url":"https://api.github.com/repos/brianfrankcooper/YCSB/languages","stargazers_url":"https://api.github.com/repos/brianfrankcooper/YCSB/stargazers","contributors_url":"https://api.github.com/repos/brianfrankcooper/YCSB/contributors","subscribers_url":"https://api.github.com/repos/brianfrankcooper/YCSB/subscribers","subscription_url":"https://api.github.com/repos/brianfrankcooper/YCSB/subscription","commits_url":"https://api.github.com/repos/brianfrankcooper/YCSB/commits{/sha}","git_commits_url":"https://api.github.com/repos/brianfrankcooper/YCSB/git/commits{/sha}","comments_url":"https://api.github.com/repos/brianfrankcooper/YCSB/comments{/number}","issue_comment_url":"https://api.github.com/repos/brianfrankcooper/YCSB/issues/comments{/number}","contents_url":"https://api.github.com/repos/brianfrankcooper/YCSB/contents/{+path}","compare_url":"https://api.github.com/repos/brianfrankcooper/YCSB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brianfrankcooper/YCSB/merges","archive_url":"https://api.github.com/repos/brianfrankcooper/YCSB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brianfrankcooper/YCSB/downloads","issues_url":"https://api.github.com/repos/brianfrankcooper/YCSB/issues{/number}","pulls_url":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls{/number}","milestones_url":"https://api.github.com/repos/brianfrankcooper/YCSB/milestones{/number}","notifications_url":"https://api.github.com/repos/brianfrankcooper/YCSB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brianfrankcooper/YCSB/labels{/name}","releases_url":"https://api.github.com/repos/brianfrankcooper/YCSB/releases{/id}","created_at":"2010-04-19T20:52:11Z","updated_at":"2015-10-29T10:15:21Z","pushed_at":"2015-10-29T05:13:30Z","git_url":"git://github.com/brianfrankcooper/YCSB.git","ssh_url":"git@github.com:brianfrankcooper/YCSB.git","clone_url":"https://github.com/brianfrankcooper/YCSB.git","svn_url":"https://github.com/brianfrankcooper/YCSB","homepage":"http://research.yahoo.com/Web_Information_Management/YCSB","size":177704,"stargazers_count":976,"watchers_count":976,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":672,"mirror_url":null,"open_issues_count":118,"forks":672,"open_issues":118,"watchers":976,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/454"},"html":{"href":"https://github.com/brianfrankcooper/YCSB/pull/454"},"issue":{"href":"https://api.github.com/repos/brianfrankcooper/YCSB/issues/454"},"comments":{"href":"https://api.github.com/repos/brianfrankcooper/YCSB/issues/454/comments"},"review_comments":{"href":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/454/comments"},"review_comment":{"href":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brianfrankcooper/YCSB/pulls/454/commits"},"statuses":{"href":"https://api.github.com/repos/brianfrankcooper/YCSB/statuses/ebe9767bd8832a20007a8821959600af136fb2af"}}}}