hbase git commit: HBASE-19242 Add MOB compact support for AsyncAdmin

2017-11-28 Thread stack
Repository: hbase
Updated Branches:
  refs/heads/master 520b9efc2 -> f6582400b


HBASE-19242 Add MOB compact support for AsyncAdmin

Signed-off-by: Michael Stack 
Signed-off-by: Guanghao Zhang 


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

Branch: refs/heads/master
Commit: f6582400bec7a9b2450437efbfb7139f212e5631
Parents: 520b9ef
Author: Balazs Meszaros 
Authored: Thu Nov 23 14:42:39 2017 +0100
Committer: Michael Stack 
Committed: Tue Nov 28 15:03:50 2017 -0800

--
 .../org/apache/hadoop/hbase/client/Admin.java   | 130 +--
 .../apache/hadoop/hbase/client/AsyncAdmin.java  |  69 +-
 .../hadoop/hbase/client/AsyncHBaseAdmin.java|  24 +-
 .../apache/hadoop/hbase/client/HBaseAdmin.java  |  13 +-
 .../hadoop/hbase/client/RawAsyncHBaseAdmin.java | 232 ---
 .../apache/hadoop/hbase/client/RegionInfo.java  |  11 +
 .../hbase/client/TestAsyncRegionAdminApi.java   |  38 +++
 7 files changed, 341 insertions(+), 176 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/f6582400/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
--
diff --git 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
index 6f1190e..d9f8e899 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
@@ -872,6 +872,33 @@ public interface Admin extends Abortable, Closeable {
 throws IOException;
 
   /**
+   * Compact a table.  Asynchronous operation in that this method requests 
that a
+   * Compaction run and then it returns. It does not wait on the completion of 
Compaction
+   * (it can take a while).
+   *
+   * @param tableName table to compact
+   * @param compactType {@link org.apache.hadoop.hbase.client.CompactType}
+   * @throws IOException if a remote or network exception occurs
+   * @throws InterruptedException
+   */
+  void compact(TableName tableName, CompactType compactType)
+throws IOException, InterruptedException;
+
+  /**
+   * Compact a column family within a table.  Asynchronous operation in that 
this method
+   * requests that a Compaction run and then it returns. It does not wait on 
the
+   * completion of Compaction (it can take a while).
+   *
+   * @param tableName table to compact
+   * @param columnFamily column family within a table
+   * @param compactType {@link org.apache.hadoop.hbase.client.CompactType}
+   * @throws IOException if not a mob column family or if a remote or network 
exception occurs
+   * @throws InterruptedException
+   */
+  void compact(TableName tableName, byte[] columnFamily, CompactType 
compactType)
+throws IOException, InterruptedException;
+
+  /**
* Major compact a table. Asynchronous operation in that this method requests
* that a Compaction run and then it returns. It does not wait on the 
completion of Compaction
* (it can take a while).
@@ -916,6 +943,33 @@ public interface Admin extends Abortable, Closeable {
 throws IOException;
 
   /**
+   * Major compact a table.  Asynchronous operation in that this method 
requests that a
+   * Compaction run and then it returns. It does not wait on the completion of 
Compaction
+   * (it can take a while).
+   *
+   * @param tableName table to compact
+   * @param compactType {@link org.apache.hadoop.hbase.client.CompactType}
+   * @throws IOException if a remote or network exception occurs
+   * @throws InterruptedException
+   */
+  void majorCompact(TableName tableName, CompactType compactType)
+throws IOException, InterruptedException;
+
+  /**
+   * Major compact a column family within a table.  Asynchronous operation in 
that this method requests that a
+   * Compaction run and then it returns. It does not wait on the completion of 
Compaction
+   * (it can take a while).
+   *
+   * @param tableName table to compact
+   * @param columnFamily column family within a table
+   * @param compactType {@link org.apache.hadoop.hbase.client.CompactType}
+   * @throws IOException if not a mob column family or if a remote or network 
exception occurs
+   * @throws InterruptedException
+   */
+  void majorCompact(TableName tableName, byte[] columnFamily, CompactType 
compactType)
+throws IOException, InterruptedException;
+
+  /**
* Compact all regions on the region server. Asynchronous operation in that 
this method requests
* that a Compaction run and then 

hbase git commit: HBASE-19242 Add MOB compact support for AsyncAdmin

2017-11-28 Thread stack
Repository: hbase
Updated Branches:
  refs/heads/branch-2 144795684 -> e946d9d84


HBASE-19242 Add MOB compact support for AsyncAdmin

Signed-off-by: Michael Stack 
Signed-off-by: Guanghao Zhang 


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

Branch: refs/heads/branch-2
Commit: e946d9d841a72d41c0c7458667c7fedc495bd306
Parents: 1447956
Author: Balazs Meszaros 
Authored: Thu Nov 23 14:42:39 2017 +0100
Committer: Michael Stack 
Committed: Tue Nov 28 15:04:56 2017 -0800

--
 .../org/apache/hadoop/hbase/client/Admin.java   | 130 +--
 .../apache/hadoop/hbase/client/AsyncAdmin.java  |  69 +-
 .../hadoop/hbase/client/AsyncHBaseAdmin.java|  24 +-
 .../apache/hadoop/hbase/client/HBaseAdmin.java  |  13 +-
 .../hadoop/hbase/client/RawAsyncHBaseAdmin.java | 232 ---
 .../apache/hadoop/hbase/client/RegionInfo.java  |  11 +
 .../hbase/client/TestAsyncRegionAdminApi.java   |  38 +++
 7 files changed, 341 insertions(+), 176 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/e946d9d8/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
--
diff --git 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
index 6f1190e..d9f8e899 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
@@ -872,6 +872,33 @@ public interface Admin extends Abortable, Closeable {
 throws IOException;
 
   /**
+   * Compact a table.  Asynchronous operation in that this method requests 
that a
+   * Compaction run and then it returns. It does not wait on the completion of 
Compaction
+   * (it can take a while).
+   *
+   * @param tableName table to compact
+   * @param compactType {@link org.apache.hadoop.hbase.client.CompactType}
+   * @throws IOException if a remote or network exception occurs
+   * @throws InterruptedException
+   */
+  void compact(TableName tableName, CompactType compactType)
+throws IOException, InterruptedException;
+
+  /**
+   * Compact a column family within a table.  Asynchronous operation in that 
this method
+   * requests that a Compaction run and then it returns. It does not wait on 
the
+   * completion of Compaction (it can take a while).
+   *
+   * @param tableName table to compact
+   * @param columnFamily column family within a table
+   * @param compactType {@link org.apache.hadoop.hbase.client.CompactType}
+   * @throws IOException if not a mob column family or if a remote or network 
exception occurs
+   * @throws InterruptedException
+   */
+  void compact(TableName tableName, byte[] columnFamily, CompactType 
compactType)
+throws IOException, InterruptedException;
+
+  /**
* Major compact a table. Asynchronous operation in that this method requests
* that a Compaction run and then it returns. It does not wait on the 
completion of Compaction
* (it can take a while).
@@ -916,6 +943,33 @@ public interface Admin extends Abortable, Closeable {
 throws IOException;
 
   /**
+   * Major compact a table.  Asynchronous operation in that this method 
requests that a
+   * Compaction run and then it returns. It does not wait on the completion of 
Compaction
+   * (it can take a while).
+   *
+   * @param tableName table to compact
+   * @param compactType {@link org.apache.hadoop.hbase.client.CompactType}
+   * @throws IOException if a remote or network exception occurs
+   * @throws InterruptedException
+   */
+  void majorCompact(TableName tableName, CompactType compactType)
+throws IOException, InterruptedException;
+
+  /**
+   * Major compact a column family within a table.  Asynchronous operation in 
that this method requests that a
+   * Compaction run and then it returns. It does not wait on the completion of 
Compaction
+   * (it can take a while).
+   *
+   * @param tableName table to compact
+   * @param columnFamily column family within a table
+   * @param compactType {@link org.apache.hadoop.hbase.client.CompactType}
+   * @throws IOException if not a mob column family or if a remote or network 
exception occurs
+   * @throws InterruptedException
+   */
+  void majorCompact(TableName tableName, byte[] columnFamily, CompactType 
compactType)
+throws IOException, InterruptedException;
+
+  /**
* Compact all regions on the region server. Asynchronous operation in that 
this method requests
* that a Compaction run and