You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2016/01/11 22:21:35 UTC

hive git commit: HIVE-12660 : addendum for branch-1

Repository: hive
Updated Branches:
  refs/heads/branch-1.0 a7a96afb9 -> 9bf229d8c


HIVE-12660 : addendum for branch-1


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/9bf229d8
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/9bf229d8
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/9bf229d8

Branch: refs/heads/branch-1.0
Commit: 9bf229d8c6112c0b88252dd5454525301fa14ceb
Parents: a7a96af
Author: Thejas Nair <th...@hortonworks.com>
Authored: Mon Jan 11 13:21:27 2016 -0800
Committer: Thejas Nair <th...@hortonworks.com>
Committed: Mon Jan 11 13:21:27 2016 -0800

----------------------------------------------------------------------
 .../apache/hive/service/cli/operation/OperationManager.java    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/9bf229d8/service/src/java/org/apache/hive/service/cli/operation/OperationManager.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/operation/OperationManager.java b/service/src/java/org/apache/hive/service/cli/operation/OperationManager.java
index 76be713..4ef1164 100644
--- a/service/src/java/org/apache/hive/service/cli/operation/OperationManager.java
+++ b/service/src/java/org/apache/hive/service/cli/operation/OperationManager.java
@@ -19,6 +19,8 @@
 package org.apache.hive.service.cli.operation;
 
 import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
 import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.List;
@@ -279,6 +281,10 @@ public class OperationManager extends AbstractService {
     return schema;
   }
 
+  public Collection<Operation> getOperations() {
+    return Collections.unmodifiableCollection(handleToOperation.values());
+  }
+
   public OperationLog getOperationLogByThread() {
     return OperationLog.getCurrentOperationLog();
   }