hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject [02/47] hbase git commit: HBASE-18420 Some methods of Admin don't use ColumnFamilyDescriptor
Date Sat, 29 Jul 2017 23:51:40 GMT
HBASE-18420 Some methods of Admin don't use ColumnFamilyDescriptor


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

Branch: refs/heads/HBASE-18426
Commit: 7941b83aafc721034b885f635dcb50cfb23ed9eb
Parents: af534ac
Author: Chia-Ping Tsai <chia7712@gmail.com>
Authored: Fri Jul 21 19:14:33 2017 +0800
Committer: Chia-Ping Tsai <chia7712@gmail.com>
Committed: Fri Jul 21 19:14:33 2017 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/client/Admin.java | 12 ++++++------
 .../java/org/apache/hadoop/hbase/client/HBaseAdmin.java | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/7941b83a/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 9bb5df4..6e9b0df 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
@@ -714,7 +714,7 @@ public interface Admin extends Abortable, Closeable {
    * @deprecated As of release 2.0.0.
    *             (<a href="https://issues.apache.org/jira/browse/HBASE-1989">HBASE-1989</a>).
    *             This will be removed in HBase 3.0.0.
-   *             Use {@link #addColumnFamily(TableName, HColumnDescriptor)}.
+   *             Use {@link #addColumnFamily(TableName, ColumnFamilyDescriptor)}.
    */
   @Deprecated
   void addColumn(final TableName tableName, final HColumnDescriptor columnFamily)
@@ -727,7 +727,7 @@ public interface Admin extends Abortable, Closeable {
    * @param columnFamily column family descriptor of column family to be added
    * @throws IOException if a remote or network exception occurs
    */
-  void addColumnFamily(final TableName tableName, final HColumnDescriptor columnFamily)
+  void addColumnFamily(final TableName tableName, final ColumnFamilyDescriptor columnFamily)
     throws IOException;
 
   /**
@@ -743,7 +743,7 @@ public interface Admin extends Abortable, Closeable {
    * @return the result of the async add column family. You can use Future.get(long, TimeUnit)
to
    *         wait on the operation to complete.
    */
-  Future<Void> addColumnFamilyAsync(final TableName tableName, final HColumnDescriptor
columnFamily)
+  Future<Void> addColumnFamilyAsync(final TableName tableName, final ColumnFamilyDescriptor
columnFamily)
       throws IOException;
 
   /**
@@ -794,7 +794,7 @@ public interface Admin extends Abortable, Closeable {
    * @deprecated As of release 2.0.0.
    *             (<a href="https://issues.apache.org/jira/browse/HBASE-1989">HBASE-1989</a>).
    *             This will be removed in HBase 3.0.0.
-   *             Use {@link #modifyColumnFamily(TableName, HColumnDescriptor)}.
+   *             Use {@link #modifyColumnFamily(TableName, ColumnFamilyDescriptor)}.
    */
   @Deprecated
   void modifyColumn(final TableName tableName, final HColumnDescriptor columnFamily)
@@ -807,7 +807,7 @@ public interface Admin extends Abortable, Closeable {
    * @param columnFamily new column family descriptor to use
    * @throws IOException if a remote or network exception occurs
    */
-  void modifyColumnFamily(final TableName tableName, final HColumnDescriptor columnFamily)
+  void modifyColumnFamily(final TableName tableName, final ColumnFamilyDescriptor columnFamily)
       throws IOException;
 
   /**
@@ -823,7 +823,7 @@ public interface Admin extends Abortable, Closeable {
    * @return the result of the async modify column family. You can use Future.get(long, TimeUnit)
to
    *         wait on the operation to complete.
    */
-  Future<Void> modifyColumnFamilyAsync(TableName tableName, HColumnDescriptor columnFamily)
+  Future<Void> modifyColumnFamilyAsync(TableName tableName, ColumnFamilyDescriptor
columnFamily)
       throws IOException;
 
 

http://git-wip-us.apache.org/repos/asf/hbase/blob/7941b83a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
index fb9df62..11224da 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
@@ -1000,7 +1000,7 @@ public class HBaseAdmin implements Admin {
   /**
    * {@inheritDoc}
    * @deprecated Since 2.0. Will be removed in 3.0. Use
-   *     {@link #addColumnFamily(TableName, HColumnDescriptor)} instead.
+   *     {@link #addColumnFamily(TableName, ColumnFamilyDescriptor)} instead.
    */
   @Override
   @Deprecated
@@ -1010,14 +1010,14 @@ public class HBaseAdmin implements Admin {
   }
 
   @Override
-  public void addColumnFamily(final TableName tableName, final HColumnDescriptor columnFamily)
+  public void addColumnFamily(final TableName tableName, final ColumnFamilyDescriptor columnFamily)
       throws IOException {
     get(addColumnFamilyAsync(tableName, columnFamily), syncWaitTimeout, TimeUnit.MILLISECONDS);
   }
 
   @Override
   public Future<Void> addColumnFamilyAsync(final TableName tableName,
-      final HColumnDescriptor columnFamily) throws IOException {
+      final ColumnFamilyDescriptor columnFamily) throws IOException {
     AddColumnResponse response =
         executeCallable(new MasterCallable<AddColumnResponse>(getConnection(),
             getRpcControllerFactory()) {
@@ -1098,7 +1098,7 @@ public class HBaseAdmin implements Admin {
   /**
    * {@inheritDoc}
    * @deprecated As of 2.0. Will be removed in 3.0. Use
-   *     {@link #modifyColumnFamily(TableName, HColumnDescriptor)} instead.
+   *     {@link #modifyColumnFamily(TableName, ColumnFamilyDescriptor)} instead.
    */
   @Override
   @Deprecated
@@ -1109,13 +1109,13 @@ public class HBaseAdmin implements Admin {
 
   @Override
   public void modifyColumnFamily(final TableName tableName,
-      final HColumnDescriptor columnFamily) throws IOException {
+      final ColumnFamilyDescriptor columnFamily) throws IOException {
     get(modifyColumnFamilyAsync(tableName, columnFamily), syncWaitTimeout, TimeUnit.MILLISECONDS);
   }
 
   @Override
   public Future<Void> modifyColumnFamilyAsync(final TableName tableName,
-      final HColumnDescriptor columnFamily) throws IOException {
+      final ColumnFamilyDescriptor columnFamily) throws IOException {
     ModifyColumnResponse response =
         executeCallable(new MasterCallable<ModifyColumnResponse>(getConnection(),
             getRpcControllerFactory()) {


Mime
View raw message