{"action":"created","comment":{"url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/comments/90771563","pull_request_review_id":11289460,"id":90771563,"diff_hunk":"@@ -374,6 +415,63 @@ def _encode_dt_options(self, req, params):\n             if o in params and params[o] is not None:\n                 setattr(req, o, params[o])\n \n+    def _encode_index_req(self, bucket, index, startkey, endkey=None,\n+                         return_terms=None, max_results=None,\n+                         continuation=None, timeout=None, term_regex=None,\n+                         streaming=False):\n+        \"\"\"\n+        Encodes a secondary index request into the protobuf message.\n+        :param bucket: the bucket whose index to query\n+        :type bucket: Bucket\n+        :param index: the index to query\n+        :type index: string\n+        :param startkey: the value or beginning of the range\n+        :type startkey: integer, string\n+        :param endkey: the end of the range\n+        :type endkey: integer, string\n+        :param return_terms: whether to return the index term with the key\n+        :type return_terms: bool\n+        :param max_results: the maximum number of results to return (page size)\n+        :type max_results: integer\n+        :param continuation: the opaque continuation returned from a\n+            previous paginated request\n+        :type continuation: string\n+        :param timeout: a timeout value in milliseconds, or 'infinity'\n+        :type timeout: int\n+        :param term_regex: a regular expression used to filter index terms\n+        :type term_regex: string\n+        :param streaming: encode as streaming request\n+        :type streaming: bool\n+        :rtype riak_pb.riak_kv_pb2.RpbIndexReq\n+        \"\"\"\n+        req = riak_pb.riak_kv_pb2.RpbIndexReq()\n+        req.bucket = str_to_bytes(bucket.name)\n+        req.index = str_to_bytes(index)\n+        self._add_bucket_type(req, bucket.bucket_type)\n+        if endkey is not None:\n+            req.qtype = riak_pb.riak_kv_pb2.RpbIndexReq.range\n+            req.range_min = str_to_bytes(str(startkey))\n+            req.range_max = str_to_bytes(str(endkey))\n+        else:\n+            req.qtype = riak_pb.riak_kv_pb2.RpbIndexReq.eq\n+            req.key = str_to_bytes(str(startkey))\n+        if return_terms is not None:\n+            req.return_terms = return_terms\n+        if max_results:\n+            req.max_results = max_results\n+        if continuation:\n+            req.continuation = str_to_bytes(continuation)\n+        if timeout:\n+            if timeout == 'infinity':","path":"aioriak/transport.py","position":118,"original_position":116,"commit_id":"602342824b2d761a8ca8c9606da35b8b647e89aa","original_commit_id":"13f557fadb26bed790bb4956301758a399150cd9","user":{"login":"kxepal","id":785983,"avatar_url":"https://avatars.githubusercontent.com/u/785983?v=3","gravatar_id":"","url":"https://api.github.com/users/kxepal","html_url":"https://github.com/kxepal","followers_url":"https://api.github.com/users/kxepal/followers","following_url":"https://api.github.com/users/kxepal/following{/other_user}","gists_url":"https://api.github.com/users/kxepal/gists{/gist_id}","starred_url":"https://api.github.com/users/kxepal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kxepal/subscriptions","organizations_url":"https://api.github.com/users/kxepal/orgs","repos_url":"https://api.github.com/users/kxepal/repos","events_url":"https://api.github.com/users/kxepal/events{/privacy}","received_events_url":"https://api.github.com/users/kxepal/received_events","type":"User","site_admin":false},"body":"I see...that makes a sense.","created_at":"2016-12-04T06:28:29Z","updated_at":"2016-12-04T06:28:29Z","html_url":"https://github.com/rambler-digital-solutions/aioriak/pull/18#discussion_r90771563","pull_request_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/comments/90771563"},"html":{"href":"https://github.com/rambler-digital-solutions/aioriak/pull/18#discussion_r90771563"},"pull_request":{"href":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/18","id":96359104,"html_url":"https://github.com/rambler-digital-solutions/aioriak/pull/18","diff_url":"https://github.com/rambler-digital-solutions/aioriak/pull/18.diff","patch_url":"https://github.com/rambler-digital-solutions/aioriak/pull/18.patch","issue_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/issues/18","number":18,"state":"open","locked":false,"title":"Basic map reduce functions","user":{"login":"pyalex","id":1303659,"avatar_url":"https://avatars.githubusercontent.com/u/1303659?v=3","gravatar_id":"","url":"https://api.github.com/users/pyalex","html_url":"https://github.com/pyalex","followers_url":"https://api.github.com/users/pyalex/followers","following_url":"https://api.github.com/users/pyalex/following{/other_user}","gists_url":"https://api.github.com/users/pyalex/gists{/gist_id}","starred_url":"https://api.github.com/users/pyalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyalex/subscriptions","organizations_url":"https://api.github.com/users/pyalex/orgs","repos_url":"https://api.github.com/users/pyalex/repos","events_url":"https://api.github.com/users/pyalex/events{/privacy}","received_events_url":"https://api.github.com/users/pyalex/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-02T21:50:55Z","updated_at":"2016-12-04T06:28:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8b19d2c1cbd23d4e619c1b3379a98f14a39ff1b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/18/commits","review_comments_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/18/comments","review_comment_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/issues/18/comments","statuses_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/statuses/602342824b2d761a8ca8c9606da35b8b647e89aa","head":{"label":"people-ai:mapred","ref":"mapred","sha":"602342824b2d761a8ca8c9606da35b8b647e89aa","user":{"login":"people-ai","id":17519801,"avatar_url":"https://avatars.githubusercontent.com/u/17519801?v=3","gravatar_id":"","url":"https://api.github.com/users/people-ai","html_url":"https://github.com/people-ai","followers_url":"https://api.github.com/users/people-ai/followers","following_url":"https://api.github.com/users/people-ai/following{/other_user}","gists_url":"https://api.github.com/users/people-ai/gists{/gist_id}","starred_url":"https://api.github.com/users/people-ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/people-ai/subscriptions","organizations_url":"https://api.github.com/users/people-ai/orgs","repos_url":"https://api.github.com/users/people-ai/repos","events_url":"https://api.github.com/users/people-ai/events{/privacy}","received_events_url":"https://api.github.com/users/people-ai/received_events","type":"Organization","site_admin":false},"repo":{"id":75113601,"name":"aioriak","full_name":"people-ai/aioriak","owner":{"login":"people-ai","id":17519801,"avatar_url":"https://avatars.githubusercontent.com/u/17519801?v=3","gravatar_id":"","url":"https://api.github.com/users/people-ai","html_url":"https://github.com/people-ai","followers_url":"https://api.github.com/users/people-ai/followers","following_url":"https://api.github.com/users/people-ai/following{/other_user}","gists_url":"https://api.github.com/users/people-ai/gists{/gist_id}","starred_url":"https://api.github.com/users/people-ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/people-ai/subscriptions","organizations_url":"https://api.github.com/users/people-ai/orgs","repos_url":"https://api.github.com/users/people-ai/repos","events_url":"https://api.github.com/users/people-ai/events{/privacy}","received_events_url":"https://api.github.com/users/people-ai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/people-ai/aioriak","description":"Python asyncio client for Riak","fork":true,"url":"https://api.github.com/repos/people-ai/aioriak","forks_url":"https://api.github.com/repos/people-ai/aioriak/forks","keys_url":"https://api.github.com/repos/people-ai/aioriak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/people-ai/aioriak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/people-ai/aioriak/teams","hooks_url":"https://api.github.com/repos/people-ai/aioriak/hooks","issue_events_url":"https://api.github.com/repos/people-ai/aioriak/issues/events{/number}","events_url":"https://api.github.com/repos/people-ai/aioriak/events","assignees_url":"https://api.github.com/repos/people-ai/aioriak/assignees{/user}","branches_url":"https://api.github.com/repos/people-ai/aioriak/branches{/branch}","tags_url":"https://api.github.com/repos/people-ai/aioriak/tags","blobs_url":"https://api.github.com/repos/people-ai/aioriak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/people-ai/aioriak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/people-ai/aioriak/git/refs{/sha}","trees_url":"https://api.github.com/repos/people-ai/aioriak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/people-ai/aioriak/statuses/{sha}","languages_url":"https://api.github.com/repos/people-ai/aioriak/languages","stargazers_url":"https://api.github.com/repos/people-ai/aioriak/stargazers","contributors_url":"https://api.github.com/repos/people-ai/aioriak/contributors","subscribers_url":"https://api.github.com/repos/people-ai/aioriak/subscribers","subscription_url":"https://api.github.com/repos/people-ai/aioriak/subscription","commits_url":"https://api.github.com/repos/people-ai/aioriak/commits{/sha}","git_commits_url":"https://api.github.com/repos/people-ai/aioriak/git/commits{/sha}","comments_url":"https://api.github.com/repos/people-ai/aioriak/comments{/number}","issue_comment_url":"https://api.github.com/repos/people-ai/aioriak/issues/comments{/number}","contents_url":"https://api.github.com/repos/people-ai/aioriak/contents/{+path}","compare_url":"https://api.github.com/repos/people-ai/aioriak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/people-ai/aioriak/merges","archive_url":"https://api.github.com/repos/people-ai/aioriak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/people-ai/aioriak/downloads","issues_url":"https://api.github.com/repos/people-ai/aioriak/issues{/number}","pulls_url":"https://api.github.com/repos/people-ai/aioriak/pulls{/number}","milestones_url":"https://api.github.com/repos/people-ai/aioriak/milestones{/number}","notifications_url":"https://api.github.com/repos/people-ai/aioriak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/people-ai/aioriak/labels{/name}","releases_url":"https://api.github.com/repos/people-ai/aioriak/releases{/id}","deployments_url":"https://api.github.com/repos/people-ai/aioriak/deployments","created_at":"2016-11-29T19:16:02Z","updated_at":"2016-11-29T19:16:03Z","pushed_at":"2016-12-03T22:23:56Z","git_url":"git://github.com/people-ai/aioriak.git","ssh_url":"git@github.com:people-ai/aioriak.git","clone_url":"https://github.com/people-ai/aioriak.git","svn_url":"https://github.com/people-ai/aioriak","homepage":null,"size":190,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"rambler-digital-solutions:master","ref":"master","sha":"6c1066bd2e347bd469de896a4e10145ee630e36d","user":{"login":"rambler-digital-solutions","id":8911401,"avatar_url":"https://avatars.githubusercontent.com/u/8911401?v=3","gravatar_id":"","url":"https://api.github.com/users/rambler-digital-solutions","html_url":"https://github.com/rambler-digital-solutions","followers_url":"https://api.github.com/users/rambler-digital-solutions/followers","following_url":"https://api.github.com/users/rambler-digital-solutions/following{/other_user}","gists_url":"https://api.github.com/users/rambler-digital-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/rambler-digital-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rambler-digital-solutions/subscriptions","organizations_url":"https://api.github.com/users/rambler-digital-solutions/orgs","repos_url":"https://api.github.com/users/rambler-digital-solutions/repos","events_url":"https://api.github.com/users/rambler-digital-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/rambler-digital-solutions/received_events","type":"Organization","site_admin":false},"repo":{"id":51319286,"name":"aioriak","full_name":"rambler-digital-solutions/aioriak","owner":{"login":"rambler-digital-solutions","id":8911401,"avatar_url":"https://avatars.githubusercontent.com/u/8911401?v=3","gravatar_id":"","url":"https://api.github.com/users/rambler-digital-solutions","html_url":"https://github.com/rambler-digital-solutions","followers_url":"https://api.github.com/users/rambler-digital-solutions/followers","following_url":"https://api.github.com/users/rambler-digital-solutions/following{/other_user}","gists_url":"https://api.github.com/users/rambler-digital-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/rambler-digital-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rambler-digital-solutions/subscriptions","organizations_url":"https://api.github.com/users/rambler-digital-solutions/orgs","repos_url":"https://api.github.com/users/rambler-digital-solutions/repos","events_url":"https://api.github.com/users/rambler-digital-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/rambler-digital-solutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rambler-digital-solutions/aioriak","description":"Python asyncio client for Riak","fork":false,"url":"https://api.github.com/repos/rambler-digital-solutions/aioriak","forks_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/forks","keys_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/teams","hooks_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/hooks","issue_events_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/issues/events{/number}","events_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/events","assignees_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/assignees{/user}","branches_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/branches{/branch}","tags_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/tags","blobs_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/git/refs{/sha}","trees_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/statuses/{sha}","languages_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/languages","stargazers_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/stargazers","contributors_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/contributors","subscribers_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/subscribers","subscription_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/subscription","commits_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/commits{/sha}","git_commits_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/git/commits{/sha}","comments_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/comments{/number}","issue_comment_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/issues/comments{/number}","contents_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/contents/{+path}","compare_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/merges","archive_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/downloads","issues_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/issues{/number}","pulls_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls{/number}","milestones_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/milestones{/number}","notifications_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/labels{/name}","releases_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/releases{/id}","deployments_url":"https://api.github.com/repos/rambler-digital-solutions/aioriak/deployments","created_at":"2016-02-08T19:00:48Z","updated_at":"2016-10-27T20:13:33Z","pushed_at":"2016-12-03T22:23:57Z","git_url":"git://github.com/rambler-digital-solutions/aioriak.git","ssh_url":"git@github.com:rambler-digital-solutions/aioriak.git","clone_url":"https://github.com/rambler-digital-solutions/aioriak.git","svn_url":"https://github.com/rambler-digital-solutions/aioriak","homepage":null,"size":141,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/18"},"html":{"href":"https://github.com/rambler-digital-solutions/aioriak/pull/18"},"issue":{"href":"https://api.github.com/repos/rambler-digital-solutions/aioriak/issues/18"},"comments":{"href":"https://api.github.com/repos/rambler-digital-solutions/aioriak/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rambler-digital-solutions/aioriak/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/rambler-digital-solutions/aioriak/statuses/602342824b2d761a8ca8c9606da35b8b647e89aa"}}}}
{"actor":{"display_login":"kxepal"}}