{"action":"created","comment":{"url":"https://api.github.com/repos/basho/spark-riak-connector/pulls/comments/62178211","id":62178211,"diff_hunk":"@@ -0,0 +1,65 @@\n+package com.basho.riak.spark.query\n+\n+import com.basho.riak.client.core.query.{ Location, RiakObject }\n+import org.apache.spark.Logging\n+import com.basho.riak.spark.util.DataConvertingIterator\n+import com.basho.riak.spark.util.TSConversionUtil\n+import org.apache.spark.sql.types.StructType\n+import com.basho.riak.spark.rdd.TsTimestampBindingType\n+import com.basho.riak.client.core.query.timeseries.ColumnDescription\n+import scala.reflect.ClassTag\n+\n+class TSDataQueryingIterator[R](query: QueryTS)(implicit schema: Option[StructType] = None, tsTimestampBinding: TsTimestampBindingType, ct: ClassTag[R]) extends Iterator[R] with Logging {\n+\n+  private var _iterator: Option[Iterator[R]] = None\n+  private val subqueries = query.queryData.iterator\n+  println(query.queryData.size)","path":"connector/src/main/scala/com/basho/riak/spark/query/TSDataQueryingIterator.scala","position":16,"original_position":16,"commit_id":"fec04b792c105159a23234d489ea0246e14a2df7","original_commit_id":"fec04b792c105159a23234d489ea0246e14a2df7","user":{"login":"srgg","id":4169264,"avatar_url":"https://avatars.githubusercontent.com/u/4169264?v=3","gravatar_id":"","url":"https://api.github.com/users/srgg","html_url":"https://github.com/srgg","followers_url":"https://api.github.com/users/srgg/followers","following_url":"https://api.github.com/users/srgg/following{/other_user}","gists_url":"https://api.github.com/users/srgg/gists{/gist_id}","starred_url":"https://api.github.com/users/srgg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srgg/subscriptions","organizations_url":"https://api.github.com/users/srgg/orgs","repos_url":"https://api.github.com/users/srgg/repos","events_url":"https://api.github.com/users/srgg/events{/privacy}","received_events_url":"https://api.github.com/users/srgg/received_events","type":"User","site_admin":false},"body":"Lets remove this debug print, or replace it with proper logging if it makes sense","created_at":"2016-05-05T12:02:23Z","updated_at":"2016-05-05T12:02:23Z","html_url":"https://github.com/basho/spark-riak-connector/pull/144#discussion_r62178211","pull_request_url":"https://api.github.com/repos/basho/spark-riak-connector/pulls/144","_links":{"self":{"href":"https://api.github.com/repos/basho/spark-riak-connector/pulls/comments/62178211"},"html":{"href":"https://github.com/basho/spark-riak-connector/pull/144#discussion_r62178211"},"pull_request":{"href":"https://api.github.com/repos/basho/spark-riak-connector/pulls/144"}}},"pull_request":{"url":"https://api.github.com/repos/basho/spark-riak-connector/pulls/144","id":67356575,"html_url":"https://github.com/basho/spark-riak-connector/pull/144","diff_url":"https://github.com/basho/spark-riak-connector/pull/144.diff","patch_url":"https://github.com/basho/spark-riak-connector/pull/144.patch","issue_url":"https://api.github.com/repos/basho/spark-riak-connector/issues/144","number":144,"state":"open","locked":false,"title":"[SPARK-129] Add Coverage Plan based partitioner for RiakTS","user":{"login":"zkhadikova","id":2883782,"avatar_url":"https://avatars.githubusercontent.com/u/2883782?v=3","gravatar_id":"","url":"https://api.github.com/users/zkhadikova","html_url":"https://github.com/zkhadikova","followers_url":"https://api.github.com/users/zkhadikova/followers","following_url":"https://api.github.com/users/zkhadikova/following{/other_user}","gists_url":"https://api.github.com/users/zkhadikova/gists{/gist_id}","starred_url":"https://api.github.com/users/zkhadikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zkhadikova/subscriptions","organizations_url":"https://api.github.com/users/zkhadikova/orgs","repos_url":"https://api.github.com/users/zkhadikova/repos","events_url":"https://api.github.com/users/zkhadikova/events{/privacy}","received_events_url":"https://api.github.com/users/zkhadikova/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-21T13:46:42Z","updated_at":"2016-05-05T12:02:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e8e7ebdb31c0ba543e0fefa94d79c271243c79f4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/basho/spark-riak-connector/pulls/144/commits","review_comments_url":"https://api.github.com/repos/basho/spark-riak-connector/pulls/144/comments","review_comment_url":"https://api.github.com/repos/basho/spark-riak-connector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/basho/spark-riak-connector/issues/144/comments","statuses_url":"https://api.github.com/repos/basho/spark-riak-connector/statuses/fec04b792c105159a23234d489ea0246e14a2df7","head":{"label":"basho:feature/zk/ts-coverage-based-partitioning","ref":"feature/zk/ts-coverage-based-partitioning","sha":"fec04b792c105159a23234d489ea0246e14a2df7","user":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"repo":{"id":35239038,"name":"spark-riak-connector","full_name":"basho/spark-riak-connector","owner":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/basho/spark-riak-connector","description":"The official Riak Spark Connector for Apache Spark with Riak TS and Riak KV","fork":false,"url":"https://api.github.com/repos/basho/spark-riak-connector","forks_url":"https://api.github.com/repos/basho/spark-riak-connector/forks","keys_url":"https://api.github.com/repos/basho/spark-riak-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basho/spark-riak-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basho/spark-riak-connector/teams","hooks_url":"https://api.github.com/repos/basho/spark-riak-connector/hooks","issue_events_url":"https://api.github.com/repos/basho/spark-riak-connector/issues/events{/number}","events_url":"https://api.github.com/repos/basho/spark-riak-connector/events","assignees_url":"https://api.github.com/repos/basho/spark-riak-connector/assignees{/user}","branches_url":"https://api.github.com/repos/basho/spark-riak-connector/branches{/branch}","tags_url":"https://api.github.com/repos/basho/spark-riak-connector/tags","blobs_url":"https://api.github.com/repos/basho/spark-riak-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basho/spark-riak-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basho/spark-riak-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/basho/spark-riak-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basho/spark-riak-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/basho/spark-riak-connector/languages","stargazers_url":"https://api.github.com/repos/basho/spark-riak-connector/stargazers","contributors_url":"https://api.github.com/repos/basho/spark-riak-connector/contributors","subscribers_url":"https://api.github.com/repos/basho/spark-riak-connector/subscribers","subscription_url":"https://api.github.com/repos/basho/spark-riak-connector/subscription","commits_url":"https://api.github.com/repos/basho/spark-riak-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/basho/spark-riak-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/basho/spark-riak-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/basho/spark-riak-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/basho/spark-riak-connector/contents/{+path}","compare_url":"https://api.github.com/repos/basho/spark-riak-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basho/spark-riak-connector/merges","archive_url":"https://api.github.com/repos/basho/spark-riak-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basho/spark-riak-connector/downloads","issues_url":"https://api.github.com/repos/basho/spark-riak-connector/issues{/number}","pulls_url":"https://api.github.com/repos/basho/spark-riak-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/basho/spark-riak-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/basho/spark-riak-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basho/spark-riak-connector/labels{/name}","releases_url":"https://api.github.com/repos/basho/spark-riak-connector/releases{/id}","deployments_url":"https://api.github.com/repos/basho/spark-riak-connector/deployments","created_at":"2015-05-07T19:22:35Z","updated_at":"2016-04-30T16:38:15Z","pushed_at":"2016-05-04T10:57:22Z","git_url":"git://github.com/basho/spark-riak-connector.git","ssh_url":"git@github.com:basho/spark-riak-connector.git","clone_url":"https://github.com/basho/spark-riak-connector.git","svn_url":"https://github.com/basho/spark-riak-connector","homepage":"http://basho.com/products/spark/","size":17393,"stargazers_count":19,"watchers_count":19,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":6,"forks":8,"open_issues":6,"watchers":19,"default_branch":"master"}},"base":{"label":"basho:develop","ref":"develop","sha":"dfc865e0f5fc63e3b24b08cd4e09e08f5109ac5f","user":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"repo":{"id":35239038,"name":"spark-riak-connector","full_name":"basho/spark-riak-connector","owner":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/basho/spark-riak-connector","description":"The official Riak Spark Connector for Apache Spark with Riak TS and Riak KV","fork":false,"url":"https://api.github.com/repos/basho/spark-riak-connector","forks_url":"https://api.github.com/repos/basho/spark-riak-connector/forks","keys_url":"https://api.github.com/repos/basho/spark-riak-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basho/spark-riak-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basho/spark-riak-connector/teams","hooks_url":"https://api.github.com/repos/basho/spark-riak-connector/hooks","issue_events_url":"https://api.github.com/repos/basho/spark-riak-connector/issues/events{/number}","events_url":"https://api.github.com/repos/basho/spark-riak-connector/events","assignees_url":"https://api.github.com/repos/basho/spark-riak-connector/assignees{/user}","branches_url":"https://api.github.com/repos/basho/spark-riak-connector/branches{/branch}","tags_url":"https://api.github.com/repos/basho/spark-riak-connector/tags","blobs_url":"https://api.github.com/repos/basho/spark-riak-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basho/spark-riak-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basho/spark-riak-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/basho/spark-riak-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basho/spark-riak-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/basho/spark-riak-connector/languages","stargazers_url":"https://api.github.com/repos/basho/spark-riak-connector/stargazers","contributors_url":"https://api.github.com/repos/basho/spark-riak-connector/contributors","subscribers_url":"https://api.github.com/repos/basho/spark-riak-connector/subscribers","subscription_url":"https://api.github.com/repos/basho/spark-riak-connector/subscription","commits_url":"https://api.github.com/repos/basho/spark-riak-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/basho/spark-riak-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/basho/spark-riak-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/basho/spark-riak-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/basho/spark-riak-connector/contents/{+path}","compare_url":"https://api.github.com/repos/basho/spark-riak-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basho/spark-riak-connector/merges","archive_url":"https://api.github.com/repos/basho/spark-riak-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basho/spark-riak-connector/downloads","issues_url":"https://api.github.com/repos/basho/spark-riak-connector/issues{/number}","pulls_url":"https://api.github.com/repos/basho/spark-riak-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/basho/spark-riak-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/basho/spark-riak-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basho/spark-riak-connector/labels{/name}","releases_url":"https://api.github.com/repos/basho/spark-riak-connector/releases{/id}","deployments_url":"https://api.github.com/repos/basho/spark-riak-connector/deployments","created_at":"2015-05-07T19:22:35Z","updated_at":"2016-04-30T16:38:15Z","pushed_at":"2016-05-04T10:57:22Z","git_url":"git://github.com/basho/spark-riak-connector.git","ssh_url":"git@github.com:basho/spark-riak-connector.git","clone_url":"https://github.com/basho/spark-riak-connector.git","svn_url":"https://github.com/basho/spark-riak-connector","homepage":"http://basho.com/products/spark/","size":17393,"stargazers_count":19,"watchers_count":19,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":6,"forks":8,"open_issues":6,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/basho/spark-riak-connector/pulls/144"},"html":{"href":"https://github.com/basho/spark-riak-connector/pull/144"},"issue":{"href":"https://api.github.com/repos/basho/spark-riak-connector/issues/144"},"comments":{"href":"https://api.github.com/repos/basho/spark-riak-connector/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/basho/spark-riak-connector/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/basho/spark-riak-connector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/basho/spark-riak-connector/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/basho/spark-riak-connector/statuses/fec04b792c105159a23234d489ea0246e14a2df7"}}}}