{"action":"created","comment":{"url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/comments/62888776","id":62888776,"diff_hunk":"@@ -0,0 +1,145 @@\n+package com.rackspacecloud.blueflood.io.datastax;\n+\n+import com.codahale.metrics.Timer;\n+import com.datastax.driver.core.*;\n+import com.datastax.driver.core.querybuilder.Insert;\n+import com.datastax.driver.core.querybuilder.Select;\n+import com.rackspacecloud.blueflood.io.CassandraModel;\n+import com.rackspacecloud.blueflood.io.Instrumentation;\n+import com.rackspacecloud.blueflood.io.serializers.metrics.RawSerDes;\n+import com.rackspacecloud.blueflood.types.DataType;\n+import com.rackspacecloud.blueflood.types.IMetric;\n+import com.rackspacecloud.blueflood.types.Locator;\n+import com.rackspacecloud.blueflood.types.Range;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import java.util.List;\n+\n+import static com.datastax.driver.core.querybuilder.QueryBuilder.*;\n+\n+\n+/**\n+ * This class deals with writing boolean, numeric and string values to the metrics_full & metrics_string column\n+ * families using the Datastax driver.\n+ */\n+public class DRawIO {\n+\n+    private static final Logger LOG = LoggerFactory.getLogger( DRawIO.class );\n+\n+    public static final String KEY = \"key\";\n+    public static final String COLUMN1 = \"column1\";\n+    public static final String VALUE = \"value\";\n+\n+    private PreparedStatement putString;\n+    private PreparedStatement putNumeric;\n+    private PreparedStatement getString;\n+    private PreparedStatement getLastString;","path":"blueflood-core/src/main/java/com/rackspacecloud/blueflood/io/datastax/DRawIO.java","position":37,"original_position":37,"commit_id":"1027d95511bcf10fe9e7d5f2c141bc6002e313c3","original_commit_id":"1027d95511bcf10fe9e7d5f2c141bc6002e313c3","user":{"login":"ChandraAddala","id":1525859,"avatar_url":"https://avatars.githubusercontent.com/u/1525859?v=3","gravatar_id":"","url":"https://api.github.com/users/ChandraAddala","html_url":"https://github.com/ChandraAddala","followers_url":"https://api.github.com/users/ChandraAddala/followers","following_url":"https://api.github.com/users/ChandraAddala/following{/other_user}","gists_url":"https://api.github.com/users/ChandraAddala/gists{/gist_id}","starred_url":"https://api.github.com/users/ChandraAddala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChandraAddala/subscriptions","organizations_url":"https://api.github.com/users/ChandraAddala/orgs","repos_url":"https://api.github.com/users/ChandraAddala/repos","events_url":"https://api.github.com/users/ChandraAddala/events{/privacy}","received_events_url":"https://api.github.com/users/ChandraAddala/received_events","type":"User","site_admin":false},"body":"Can you make these 3 instance variables final?","created_at":"2016-05-11T17:19:21Z","updated_at":"2016-05-11T17:19:21Z","html_url":"https://github.com/rackerlabs/blueflood/pull/692#discussion_r62888776","pull_request_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/692","_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/comments/62888776"},"html":{"href":"https://github.com/rackerlabs/blueflood/pull/692#discussion_r62888776"},"pull_request":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/692"}}},"pull_request":{"url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/692","id":69406052,"html_url":"https://github.com/rackerlabs/blueflood/pull/692","diff_url":"https://github.com/rackerlabs/blueflood/pull/692.diff","patch_url":"https://github.com/rackerlabs/blueflood/pull/692.patch","issue_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/692","number":692,"state":"open","locked":false,"title":"Datastax support for BasicRollup, Numeric, Strings & Booleans","user":{"login":"usnavi","id":1426961,"avatar_url":"https://avatars.githubusercontent.com/u/1426961?v=3","gravatar_id":"","url":"https://api.github.com/users/usnavi","html_url":"https://github.com/usnavi","followers_url":"https://api.github.com/users/usnavi/followers","following_url":"https://api.github.com/users/usnavi/following{/other_user}","gists_url":"https://api.github.com/users/usnavi/gists{/gist_id}","starred_url":"https://api.github.com/users/usnavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usnavi/subscriptions","organizations_url":"https://api.github.com/users/usnavi/orgs","repos_url":"https://api.github.com/users/usnavi/repos","events_url":"https://api.github.com/users/usnavi/events{/privacy}","received_events_url":"https://api.github.com/users/usnavi/received_events","type":"User","site_admin":false},"body":"This feels like my life's work! :-P\r\n\r\nDoes the following\r\n- Adds datastax support for BasicRollup, Numeric, Strings & Booleans\r\n- Allow AstyanaxReader to read Booleans (previously it alway read 'false')\r\n- Refactored DPreaggregatedMetricsRW to allow basic numerics to leverage its methods.\r\n- Renamed DatastaxMetadataIO -> DMetadataIO\r\n- Renamed DatastaxShardStateIO -> DShardStateIO\r\n- Updated datastax exception logging for DMetadataIO & DShardStateIO\r\n","created_at":"2016-05-09T20:33:30Z","updated_at":"2016-05-11T17:19:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0bdeb79bd61df20acb6a200efe9ceee322fac90","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/692/commits","review_comments_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/692/comments","review_comment_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/692/comments","statuses_url":"https://api.github.com/repos/rackerlabs/blueflood/statuses/1027d95511bcf10fe9e7d5f2c141bc6002e313c3","head":{"label":"usnavi:datastax_full","ref":"datastax_full","sha":"1027d95511bcf10fe9e7d5f2c141bc6002e313c3","user":{"login":"usnavi","id":1426961,"avatar_url":"https://avatars.githubusercontent.com/u/1426961?v=3","gravatar_id":"","url":"https://api.github.com/users/usnavi","html_url":"https://github.com/usnavi","followers_url":"https://api.github.com/users/usnavi/followers","following_url":"https://api.github.com/users/usnavi/following{/other_user}","gists_url":"https://api.github.com/users/usnavi/gists{/gist_id}","starred_url":"https://api.github.com/users/usnavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usnavi/subscriptions","organizations_url":"https://api.github.com/users/usnavi/orgs","repos_url":"https://api.github.com/users/usnavi/repos","events_url":"https://api.github.com/users/usnavi/events{/privacy}","received_events_url":"https://api.github.com/users/usnavi/received_events","type":"User","site_admin":false},"repo":{"id":45408967,"name":"blueflood","full_name":"usnavi/blueflood","owner":{"login":"usnavi","id":1426961,"avatar_url":"https://avatars.githubusercontent.com/u/1426961?v=3","gravatar_id":"","url":"https://api.github.com/users/usnavi","html_url":"https://github.com/usnavi","followers_url":"https://api.github.com/users/usnavi/followers","following_url":"https://api.github.com/users/usnavi/following{/other_user}","gists_url":"https://api.github.com/users/usnavi/gists{/gist_id}","starred_url":"https://api.github.com/users/usnavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usnavi/subscriptions","organizations_url":"https://api.github.com/users/usnavi/orgs","repos_url":"https://api.github.com/users/usnavi/repos","events_url":"https://api.github.com/users/usnavi/events{/privacy}","received_events_url":"https://api.github.com/users/usnavi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/usnavi/blueflood","description":"A distributed system designed to ingest and process time series data","fork":true,"url":"https://api.github.com/repos/usnavi/blueflood","forks_url":"https://api.github.com/repos/usnavi/blueflood/forks","keys_url":"https://api.github.com/repos/usnavi/blueflood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usnavi/blueflood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usnavi/blueflood/teams","hooks_url":"https://api.github.com/repos/usnavi/blueflood/hooks","issue_events_url":"https://api.github.com/repos/usnavi/blueflood/issues/events{/number}","events_url":"https://api.github.com/repos/usnavi/blueflood/events","assignees_url":"https://api.github.com/repos/usnavi/blueflood/assignees{/user}","branches_url":"https://api.github.com/repos/usnavi/blueflood/branches{/branch}","tags_url":"https://api.github.com/repos/usnavi/blueflood/tags","blobs_url":"https://api.github.com/repos/usnavi/blueflood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usnavi/blueflood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usnavi/blueflood/git/refs{/sha}","trees_url":"https://api.github.com/repos/usnavi/blueflood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usnavi/blueflood/statuses/{sha}","languages_url":"https://api.github.com/repos/usnavi/blueflood/languages","stargazers_url":"https://api.github.com/repos/usnavi/blueflood/stargazers","contributors_url":"https://api.github.com/repos/usnavi/blueflood/contributors","subscribers_url":"https://api.github.com/repos/usnavi/blueflood/subscribers","subscription_url":"https://api.github.com/repos/usnavi/blueflood/subscription","commits_url":"https://api.github.com/repos/usnavi/blueflood/commits{/sha}","git_commits_url":"https://api.github.com/repos/usnavi/blueflood/git/commits{/sha}","comments_url":"https://api.github.com/repos/usnavi/blueflood/comments{/number}","issue_comment_url":"https://api.github.com/repos/usnavi/blueflood/issues/comments{/number}","contents_url":"https://api.github.com/repos/usnavi/blueflood/contents/{+path}","compare_url":"https://api.github.com/repos/usnavi/blueflood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usnavi/blueflood/merges","archive_url":"https://api.github.com/repos/usnavi/blueflood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usnavi/blueflood/downloads","issues_url":"https://api.github.com/repos/usnavi/blueflood/issues{/number}","pulls_url":"https://api.github.com/repos/usnavi/blueflood/pulls{/number}","milestones_url":"https://api.github.com/repos/usnavi/blueflood/milestones{/number}","notifications_url":"https://api.github.com/repos/usnavi/blueflood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usnavi/blueflood/labels{/name}","releases_url":"https://api.github.com/repos/usnavi/blueflood/releases{/id}","deployments_url":"https://api.github.com/repos/usnavi/blueflood/deployments","created_at":"2015-11-02T17:04:56Z","updated_at":"2016-01-21T21:52:36Z","pushed_at":"2016-05-10T21:59:50Z","git_url":"git://github.com/usnavi/blueflood.git","ssh_url":"git@github.com:usnavi/blueflood.git","clone_url":"https://github.com/usnavi/blueflood.git","svn_url":"https://github.com/usnavi/blueflood","homepage":"http://www.blueflood.io","size":10002,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rackerlabs:master","ref":"master","sha":"7b19c4fae36bb0d90ebac74f633fb330bfc15544","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":10081109,"name":"blueflood","full_name":"rackerlabs/blueflood","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/blueflood","description":"A distributed system designed to ingest and process time series data","fork":false,"url":"https://api.github.com/repos/rackerlabs/blueflood","forks_url":"https://api.github.com/repos/rackerlabs/blueflood/forks","keys_url":"https://api.github.com/repos/rackerlabs/blueflood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/blueflood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/blueflood/teams","hooks_url":"https://api.github.com/repos/rackerlabs/blueflood/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/blueflood/events","assignees_url":"https://api.github.com/repos/rackerlabs/blueflood/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/blueflood/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/blueflood/tags","blobs_url":"https://api.github.com/repos/rackerlabs/blueflood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/blueflood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/blueflood/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/blueflood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/blueflood/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/blueflood/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/blueflood/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/blueflood/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/blueflood/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/blueflood/subscription","commits_url":"https://api.github.com/repos/rackerlabs/blueflood/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/blueflood/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/blueflood/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/blueflood/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/blueflood/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/blueflood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/blueflood/merges","archive_url":"https://api.github.com/repos/rackerlabs/blueflood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/blueflood/downloads","issues_url":"https://api.github.com/repos/rackerlabs/blueflood/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/blueflood/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/blueflood/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/blueflood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/blueflood/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/blueflood/releases{/id}","deployments_url":"https://api.github.com/repos/rackerlabs/blueflood/deployments","created_at":"2013-05-15T14:50:39Z","updated_at":"2016-05-10T22:35:34Z","pushed_at":"2016-05-11T15:49:26Z","git_url":"git://github.com/rackerlabs/blueflood.git","ssh_url":"git@github.com:rackerlabs/blueflood.git","clone_url":"https://github.com/rackerlabs/blueflood.git","svn_url":"https://github.com/rackerlabs/blueflood","homepage":"http://www.blueflood.io","size":13266,"stargazers_count":432,"watchers_count":432,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":58,"mirror_url":null,"open_issues_count":28,"forks":58,"open_issues":28,"watchers":432,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/692"},"html":{"href":"https://github.com/rackerlabs/blueflood/pull/692"},"issue":{"href":"https://api.github.com/repos/rackerlabs/blueflood/issues/692"},"comments":{"href":"https://api.github.com/repos/rackerlabs/blueflood/issues/692/comments"},"review_comments":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/692/comments"},"review_comment":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackerlabs/blueflood/pulls/692/commits"},"statuses":{"href":"https://api.github.com/repos/rackerlabs/blueflood/statuses/1027d95511bcf10fe9e7d5f2c141bc6002e313c3"}}}}