GitHub PullRequestReviewCommentEvent at 2014-12-06 09:17:26
Repository: tajo
Actor: babokim
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/apache/tajo/pulls/comments/21415700","id":21415700,"diff_hunk":"@@ -0,0 +1,500 @@\n+/**\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  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+\n+package org.apache.tajo.thrift.client;\n+\n+import com.google.protobuf.ServiceException;\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+import org.apache.hadoop.security.UserGroupInformation;\n+import org.apache.tajo.QueryIdFactory;\n+import org.apache.tajo.TajoProtos.QueryState;\n+import org.apache.tajo.annotation.Nullable;\n+import org.apache.tajo.annotation.ThreadSafe;\n+import org.apache.tajo.client.*;\n+import org.apache.tajo.conf.TajoConf;\n+import org.apache.tajo.ipc.ClientProtos.*;\n+import org.apache.tajo.thrift.TajoThriftUtil;\n+import org.apache.tajo.thrift.ThriftServerConstants;\n+import org.apache.tajo.thrift.generated.*;\n+import org.apache.tajo.thrift.generated.TajoThriftService.Client;\n+import org.apache.thrift.protocol.TBinaryProtocol;\n+import org.apache.thrift.transport.TSocket;\n+import org.apache.thrift.transport.TTransport;\n+\n+import java.io.IOException;\n+import java.nio.ByteBuffer;\n+import java.sql.ResultSet;\n+import java.util.*;\n+import java.util.concurrent.atomic.AtomicBoolean;\n+\n+@ThreadSafe\n+public class TajoThriftClient {\n+  private final Log LOG = LogFactory.getLog(TajoThriftClient.class);\n+\n+  protected final TajoConf tajoConf;\n+\n+  protected String thriftServer;\n+\n+  protected Client currentClient;\n+\n+  private final String baseDatabase;\n+\n+  private final UserGroupInformation userInfo;\n+\n+  volatile String sessionId;\n+\n+  private AtomicBoolean closed = new AtomicBoolean(false);\n+\n+  // Thrift client is thread unsafe. So every call should be synchronized with callMonitor.\n+  private Object callMonitor = new Object();\n+\n+  public TajoThriftClient(TajoConf tajoConf, String thriftServer) throws IOException {\n+    this(tajoConf, thriftServer, null);\n+\n+  }\n+\n+  /**\n+   * Connect to ThriftServer\n+   *\n+   * @param tajoConf     TajoConf\n+   * @param thriftServer ThriftServer\n+   * @param baseDatabase The base database name. It is case sensitive. If it is null,\n+   *                     the 'default' database will be used.\n+   * @throws java.io.IOException\n+   */\n+  public TajoThriftClient(TajoConf tajoConf, String thriftServer, @Nullable String baseDatabase) throws IOException {\n+    this.tajoConf = tajoConf;\n+    this.thriftServer = thriftServer;\n+    this.baseDatabase = baseDatabase;\n+\n+    this.userInfo = UserGroupInformation.getCurrentUser();\n+\n+    synchronized (callMonitor) {\n+      makeConnection();\n+    }\n+  }\n+\n+  public TajoConf getConf() {\n+    return tajoConf;\n+  }\n+\n+  public UserGroupInformation getUserInfo() {\n+    return userInfo;\n+  }\n+\n+  protected void makeConnection() throws IOException {\n+    // Should be synchronized with callMonitor\n+    if (currentClient == null) {\n+      String[] tokens = thriftServer.split(\":\");\n+      TTransport transport = new TSocket(tokens[0], Integer.parseInt(tokens[1]));\n+      try {\n+        transport.open();\n+      } catch (Exception e) {\n+        LOG.error(\"Can not make protocol: \" + thriftServer + \", \" + e.getMessage(), e);\n+        throw new IOException(\"Can not make protocol\", e);\n+      }\n+      currentClient = new TajoThriftService.Client(new TBinaryProtocol(transport));\n+    }\n+  }\n+\n+  public boolean createDatabase(final String databaseName) throws Exception {\n+    return new ReconnectThriftServerCallable<Boolean>(currentClient) {\n+      public Boolean syncCall(Client client) throws Exception {\n+        checkSessionAndGet(client);\n+        return client.createDatabase(sessionId, databaseName);\n+      }\n+    }.withRetries();\n+  }\n+\n+  public boolean existDatabase(final String databaseName) throws Exception {\n+    return new ReconnectThriftServerCallable<Boolean>(currentClient) {\n+      public Boolean syncCall(Client client) throws Exception {\n+        checkSessionAndGet(client);\n+        return client.existDatabase(sessionId, databaseName);\n+      }\n+    }.withRetries();\n+  }\n+\n+  public boolean dropDatabase(final String databaseName) throws Exception {\n+    return new ReconnectThriftServerCallable<Boolean>(currentClient) {\n+      public Boolean syncCall(Client client) throws Exception {\n+        checkSessionAndGet(client);\n+        return client.dropDatabase(sessionId, databaseName);\n+      }\n+    }.withRetries();\n+  }\n+\n+  public List<String> getAllDatabaseNames() throws Exception {\n+    return new ReconnectThriftServerCallable<List<String>>(currentClient) {\n+      public List<String> syncCall(Client client) throws Exception {\n+        checkSessionAndGet(client);\n+        return client.getAllDatabases(sessionId);\n+      }\n+    }.withRetries();\n+  }\n+\n+  public boolean existTable(final String tableName) throws Exception {\n+    return new ReconnectThriftServerCallable<Boolean>(currentClient) {\n+      public Boolean syncCall(Client client) throws Exception {\n+        try {\n+          checkSessionAndGet(client);\n+          return client.existTable(sessionId, tableName);\n+        } catch (Exception e) {\n+          abort();\n+          throw e;\n+        }\n+      }\n+    }.withRetries();\n+  }\n+\n+  public boolean dropTable(final String tableName) throws Exception {\n+    return dropTable(tableName, false);\n+  }\n+\n+  public boolean dropTable(final String tableName, final boolean purge) throws Exception {\n+    return new ReconnectThriftServerCallable<Boolean>(currentClient) {\n+      public Boolean syncCall(Client client) throws Exception {\n+        checkSessionAndGet(client);\n+        return client.dropTable(sessionId, tableName, purge);\n+      }\n+    }.withRetries();\n+  }\n+\n+  public List<String> getTableList(@Nullable final String databaseName) throws Exception {\n+    return new ReconnectThriftServerCallable<List<String>>(currentClient) {\n+      public List<String> syncCall(Client client) throws Exception {\n+        checkSessionAndGet(client);\n+        return client.getTableList(sessionId, databaseName);\n+      }\n+    }.withRetries();\n+  }\n+\n+  public TTableDesc getTableDesc(final String tableName) throws Exception {\n+    return new ReconnectThriftServerCallable<TTableDesc>(currentClient) {\n+      public TTableDesc syncCall(Client client) throws Exception {\n+        checkSessionAndGet(client);\n+        return client.getTableDesc(sessionId, tableName);\n+      }\n+    }.withRetries();\n+  }\n+\n+  public void closeQuery(String queryId) {\n+    try {\n+      checkSessionAndGet(currentClient);\n+\n+      currentClient.closeQuery(sessionId, queryId);\n+    } catch (Exception e) {\n+      LOG.warn(\"Fail to close query (qid=\" + queryId + \", msg=\" + e.getMessage() + \")\", e);\n+    }\n+  }\n+\n+  public TGetQueryStatusResponse executeQuery(final String sql) throws Exception {\n+    return new ReconnectThriftServerCallable<TGetQueryStatusResponse>(currentClient) {\n+      public TGetQueryStatusResponse syncCall(Client client) throws Exception {\n+        checkSessionAndGet(client);\n+        return client.submitQuery(sessionId, sql, false);\n+      }\n+    }.withRetries();\n+  }\n+\n+  public boolean updateQuery(final String sql) throws Exception {\n+    return new ReconnectThriftServerCallable<Boolean>(currentClient) {\n+      public Boolean syncCall(Client client) throws Exception {\n+        checkSessionAndGet(client);\n+        return client.updateQuery(sessionId, sql).isBoolResult();\n+      }\n+    }.withRetries();\n+  }\n+\n+  public ResultSet executeQueryAndGetResult(final String sql) throws ServiceException, IOException {\n+    try {\n+      TGetQueryStatusResponse response = new ReconnectThriftServerCallable<TGetQueryStatusResponse>(currentClient) {\n+        public TGetQueryStatusResponse syncCall(Client client) throws Exception {\n+          checkSessionAndGet(client);\n+          TGetQueryStatusResponse response = null;\n+          try {\n+            response = client.submitQuery(sessionId, sql, false);\n+          } catch (TServiceException e) {\n+            abort();\n+            throw new IOException(e.getMessage(), e);\n+          } catch (Throwable t) {\n+            throw new IOException(t.getMessage(), t);\n+          }\n+          if (!ResultCode.OK.name().equals(response.getResultCode()) || response.getErrorMessage() != null) {\n+            abort();\n+            throw new IOException(response.getErrorMessage());\n+          }\n+          return response;\n+        }\n+      }.withRetries();\n+\n+      if (response != null && response.getQueryId() != null) {\n+        return this.getQueryResultAndWait(response.getQueryId(), response);\n+      } else {\n+        return createNullResultSet(QueryIdFactory.NULL_QUERY_ID.toString());\n+      }\n+    } catch (Exception e) {\n+      LOG.error(e.getMessage(), e);\n+      throw new IOException(e.getMessage(), e);\n+    }\n+  }\n+\n+  public ResultSet createNullResultSet(String queryId) throws IOException {\n+    TGetQueryStatusResponse emptyQueryStatus = new TGetQueryStatusResponse();\n+    emptyQueryStatus.setResultCode(ResultCode.OK.name());\n+    emptyQueryStatus.setState(QueryState.QUERY_SUCCEEDED.name());\n+    emptyQueryStatus.setQueryId(queryId);\n+\n+    TQueryResult emptyQueryResult = new TQueryResult();\n+\n+    emptyQueryResult.setRows(Collections.<ByteBuffer>emptyList());\n+    return new TajoThriftResultSet(this, queryId, emptyQueryResult);\n+  }\n+\n+  public ResultSet getQueryResultAndWait(String queryId, TGetQueryStatusResponse queryResponse) throws Exception {\n+    if (queryResponse.getQueryResult() != null) {\n+      //select 1+1\n+      TQueryResult queryResult = queryResponse.getQueryResult();\n+      ResultSet resultSet = new TajoThriftMemoryResultSet(this, queryId,\n+          TajoThriftUtil.convertSchema(queryResult.getSchema()),\n+          queryResult.getRows(), queryResult.getRows() == null ? 0 : queryResult.getRows().size());\n+      return resultSet;\n+    }\n+\n+    TGetQueryStatusResponse status = getQueryStatus(queryId);\n+    while(status != null && TajoThriftUtil.isQueryRunnning(status.getState())) {\n+      status = getQueryStatus(queryId);\n+      try {\n+        //TODO use thread\n+        Thread.sleep(100);\n+      } catch (InterruptedException e) {\n+        e.printStackTrace();\n+      }\n+    }\n+    if (QueryState.QUERY_SUCCEEDED.name().equals(status.getState())) {\n+      if (status.isHasResult()) {\n+        //select * from lineitem","path":"tajo-thrift-server/src/main/java/org/apache/tajo/thrift/client/TajoThriftClient.java","position":292,"original_position":292,"commit_id":"0ff4ddffbca31ad34a3203fea57bd913608b492e","original_commit_id":"0ff4ddffbca31ad34a3203fea57bd913608b492e","user":{"login":"babokim","id":321821,"avatar_url":"https://avatars.githubusercontent.com/u/321821?v=3","gravatar_id":"","url":"https://api.github.com/users/babokim","html_url":"https://github.com/babokim","followers_url":"https://api.github.com/users/babokim/followers","following_url":"https://api.github.com/users/babokim/following{/other_user}","gists_url":"https://api.github.com/users/babokim/gists{/gist_id}","starred_url":"https://api.github.com/users/babokim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babokim/subscriptions","organizations_url":"https://api.github.com/users/babokim/orgs","repos_url":"https://api.github.com/users/babokim/repos","events_url":"https://api.github.com/users/babokim/events{/privacy}","received_events_url":"https://api.github.com/users/babokim/received_events","type":"User","site_admin":false},"body":"This comment is not for debugging. It shows a example.","created_at":"2014-12-06T09:17:26Z","updated_at":"2014-12-06T09:17:26Z","html_url":"https://github.com/apache/tajo/pull/268#discussion_r21415700","pull_request_url":"https://api.github.com/repos/apache/tajo/pulls/268","_links":{"self":{"href":"https://api.github.com/repos/apache/tajo/pulls/comments/21415700"},"html":{"href":"https://github.com/apache/tajo/pull/268#discussion_r21415700"},"pull_request":{"href":"https://api.github.com/repos/apache/tajo/pulls/268"}}},"pull_request":{"url":"https://api.github.com/repos/apache/tajo/pulls/268","id":24913645,"html_url":"https://github.com/apache/tajo/pull/268","diff_url":"https://github.com/apache/tajo/pull/268.diff","patch_url":"https://github.com/apache/tajo/pull/268.patch","issue_url":"https://api.github.com/repos/apache/tajo/issues/268","number":268,"state":"open","locked":false,"title":"TAJO-1206: Implements Thrift proxy server.","user":{"login":"babokim","id":321821,"avatar_url":"https://avatars.githubusercontent.com/u/321821?v=3","gravatar_id":"","url":"https://api.github.com/users/babokim","html_url":"https://github.com/babokim","followers_url":"https://api.github.com/users/babokim/followers","following_url":"https://api.github.com/users/babokim/following{/other_user}","gists_url":"https://api.github.com/users/babokim/gists{/gist_id}","starred_url":"https://api.github.com/users/babokim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babokim/subscriptions","organizations_url":"https://api.github.com/users/babokim/orgs","repos_url":"https://api.github.com/users/babokim/repos","events_url":"https://api.github.com/users/babokim/events{/privacy}","received_events_url":"https://api.github.com/users/babokim/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-24T04:54:26Z","updated_at":"2014-12-06T09:17:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da8dafab26a61928ee99fec1e1c538ef0e509691","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/tajo/pulls/268/commits","review_comments_url":"https://api.github.com/repos/apache/tajo/pulls/268/comments","review_comment_url":"https://api.github.com/repos/apache/tajo/pulls/comments/{number}","comments_url":"https://api.github.com/repos/apache/tajo/issues/268/comments","statuses_url":"https://api.github.com/repos/apache/tajo/statuses/0ff4ddffbca31ad34a3203fea57bd913608b492e","head":{"label":"babokim:TAJO-1206","ref":"TAJO-1206","sha":"0ff4ddffbca31ad34a3203fea57bd913608b492e","user":{"login":"babokim","id":321821,"avatar_url":"https://avatars.githubusercontent.com/u/321821?v=3","gravatar_id":"","url":"https://api.github.com/users/babokim","html_url":"https://github.com/babokim","followers_url":"https://api.github.com/users/babokim/followers","following_url":"https://api.github.com/users/babokim/following{/other_user}","gists_url":"https://api.github.com/users/babokim/gists{/gist_id}","starred_url":"https://api.github.com/users/babokim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babokim/subscriptions","organizations_url":"https://api.github.com/users/babokim/orgs","repos_url":"https://api.github.com/users/babokim/repos","events_url":"https://api.github.com/users/babokim/events{/privacy}","received_events_url":"https://api.github.com/users/babokim/received_events","type":"User","site_admin":false},"repo":{"id":19963269,"name":"tajo","full_name":"babokim/tajo","owner":{"login":"babokim","id":321821,"avatar_url":"https://avatars.githubusercontent.com/u/321821?v=3","gravatar_id":"","url":"https://api.github.com/users/babokim","html_url":"https://github.com/babokim","followers_url":"https://api.github.com/users/babokim/followers","following_url":"https://api.github.com/users/babokim/following{/other_user}","gists_url":"https://api.github.com/users/babokim/gists{/gist_id}","starred_url":"https://api.github.com/users/babokim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babokim/subscriptions","organizations_url":"https://api.github.com/users/babokim/orgs","repos_url":"https://api.github.com/users/babokim/repos","events_url":"https://api.github.com/users/babokim/events{/privacy}","received_events_url":"https://api.github.com/users/babokim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/babokim/tajo","description":"Mirror of Apache Tajo","fork":true,"url":"https://api.github.com/repos/babokim/tajo","forks_url":"https://api.github.com/repos/babokim/tajo/forks","keys_url":"https://api.github.com/repos/babokim/tajo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/babokim/tajo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/babokim/tajo/teams","hooks_url":"https://api.github.com/repos/babokim/tajo/hooks","issue_events_url":"https://api.github.com/repos/babokim/tajo/issues/events{/number}","events_url":"https://api.github.com/repos/babokim/tajo/events","assignees_url":"https://api.github.com/repos/babokim/tajo/assignees{/user}","branches_url":"https://api.github.com/repos/babokim/tajo/branches{/branch}","tags_url":"https://api.github.com/repos/babokim/tajo/tags","blobs_url":"https://api.github.com/repos/babokim/tajo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/babokim/tajo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/babokim/tajo/git/refs{/sha}","trees_url":"https://api.github.com/repos/babokim/tajo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/babokim/tajo/statuses/{sha}","languages_url":"https://api.github.com/repos/babokim/tajo/languages","stargazers_url":"https://api.github.com/repos/babokim/tajo/stargazers","contributors_url":"https://api.github.com/repos/babokim/tajo/contributors","subscribers_url":"https://api.github.com/repos/babokim/tajo/subscribers","subscription_url":"https://api.github.com/repos/babokim/tajo/subscription","commits_url":"https://api.github.com/repos/babokim/tajo/commits{/sha}","git_commits_url":"https://api.github.com/repos/babokim/tajo/git/commits{/sha}","comments_url":"https://api.github.com/repos/babokim/tajo/comments{/number}","issue_comment_url":"https://api.github.com/repos/babokim/tajo/issues/comments/{number}","contents_url":"https://api.github.com/repos/babokim/tajo/contents/{+path}","compare_url":"https://api.github.com/repos/babokim/tajo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/babokim/tajo/merges","archive_url":"https://api.github.com/repos/babokim/tajo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/babokim/tajo/downloads","issues_url":"https://api.github.com/repos/babokim/tajo/issues{/number}","pulls_url":"https://api.github.com/repos/babokim/tajo/pulls{/number}","milestones_url":"https://api.github.com/repos/babokim/tajo/milestones{/number}","notifications_url":"https://api.github.com/repos/babokim/tajo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/babokim/tajo/labels{/name}","releases_url":"https://api.github.com/repos/babokim/tajo/releases{/id}","created_at":"2014-05-20T01:19:26Z","updated_at":"2014-09-03T15:47:11Z","pushed_at":"2014-12-05T08:50:07Z","git_url":"git://github.com/babokim/tajo.git","ssh_url":"git@github.com:babokim/tajo.git","clone_url":"https://github.com/babokim/tajo.git","svn_url":"https://github.com/babokim/tajo","homepage":null,"size":15971,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"80afe993b82d57582fbeab64d20199f4dfa3d9af","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17971138,"name":"tajo","full_name":"apache/tajo","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/tajo","description":"Mirror of Apache Tajo","fork":false,"url":"https://api.github.com/repos/apache/tajo","forks_url":"https://api.github.com/repos/apache/tajo/forks","keys_url":"https://api.github.com/repos/apache/tajo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/tajo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/tajo/teams","hooks_url":"https://api.github.com/repos/apache/tajo/hooks","issue_events_url":"https://api.github.com/repos/apache/tajo/issues/events{/number}","events_url":"https://api.github.com/repos/apache/tajo/events","assignees_url":"https://api.github.com/repos/apache/tajo/assignees{/user}","branches_url":"https://api.github.com/repos/apache/tajo/branches{/branch}","tags_url":"https://api.github.com/repos/apache/tajo/tags","blobs_url":"https://api.github.com/repos/apache/tajo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/tajo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/tajo/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/tajo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/tajo/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/tajo/languages","stargazers_url":"https://api.github.com/repos/apache/tajo/stargazers","contributors_url":"https://api.github.com/repos/apache/tajo/contributors","subscribers_url":"https://api.github.com/repos/apache/tajo/subscribers","subscription_url":"https://api.github.com/repos/apache/tajo/subscription","commits_url":"https://api.github.com/repos/apache/tajo/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/tajo/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/tajo/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/tajo/issues/comments/{number}","contents_url":"https://api.github.com/repos/apache/tajo/contents/{+path}","compare_url":"https://api.github.com/repos/apache/tajo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/tajo/merges","archive_url":"https://api.github.com/repos/apache/tajo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/tajo/downloads","issues_url":"https://api.github.com/repos/apache/tajo/issues{/number}","pulls_url":"https://api.github.com/repos/apache/tajo/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/tajo/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/tajo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/tajo/labels{/name}","releases_url":"https://api.github.com/repos/apache/tajo/releases{/id}","created_at":"2014-03-21T07:00:07Z","updated_at":"2014-12-05T07:41:04Z","pushed_at":"2014-12-05T08:21:13Z","git_url":"git://github.com/apache/tajo.git","ssh_url":"git@github.com:apache/tajo.git","clone_url":"https://github.com/apache/tajo.git","svn_url":"https://github.com/apache/tajo","homepage":null,"size":21545,"stargazers_count":30,"watchers_count":30,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":36,"mirror_url":"git://git.apache.org/tajo.git","open_issues_count":17,"forks":36,"open_issues":17,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/tajo/pulls/268"},"html":{"href":"https://github.com/apache/tajo/pull/268"},"issue":{"href":"https://api.github.com/repos/apache/tajo/issues/268"},"comments":{"href":"https://api.github.com/repos/apache/tajo/issues/268/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/tajo/pulls/268/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/tajo/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/apache/tajo/pulls/268/commits"},"statuses":{"href":"https://api.github.com/repos/apache/tajo/statuses/0ff4ddffbca31ad34a3203fea57bd913608b492e"}}}}