hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stak...@apache.org
Subject hive git commit: HIVE-17191: Add InterfaceAudience and InterfaceStability annotations for StorageHandler APIs (Sahil Takiar, reviewd by Aihua Xu)
Date Tue, 08 Aug 2017 21:57:01 GMT
Repository: hive
Updated Branches:
  refs/heads/master cff4e2032 -> 16bfb9c94


HIVE-17191: Add InterfaceAudience and InterfaceStability annotations for StorageHandler APIs
(Sahil Takiar, reviewd by Aihua Xu)


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

Branch: refs/heads/master
Commit: 16bfb9c9405b68a24c7e6c1b13bec00e38bbe213
Parents: cff4e20
Author: Sahil Takiar <takiar.sahil@gmail.com>
Authored: Tue Aug 8 14:56:54 2017 -0700
Committer: Sahil Takiar <stakiar@cloudera.com>
Committed: Tue Aug 8 14:57:20 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hive/metastore/HiveMetaHook.java    | 4 ++++
 .../org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java | 4 ++++
 .../hadoop/hive/ql/metadata/HiveStoragePredicateHandler.java   | 6 ++++++
 .../org/apache/hadoop/hive/ql/metadata/InputEstimator.java     | 4 ++++
 4 files changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/16bfb9c9/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaHook.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaHook.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaHook.java
index 570b358..3317bc5 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaHook.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaHook.java
@@ -18,6 +18,8 @@
 
 package org.apache.hadoop.hive.metastore;
 
+import org.apache.hadoop.hive.common.classification.InterfaceAudience;
+import org.apache.hadoop.hive.common.classification.InterfaceStability;
 import org.apache.hadoop.hive.metastore.api.MetaException;
 import org.apache.hadoop.hive.metastore.api.Partition;
 import org.apache.hadoop.hive.metastore.api.Table;
@@ -32,6 +34,8 @@ import org.apache.hadoop.hive.metastore.api.Table;
  * Implementations can use {@link MetaStoreUtils#isExternalTable} to
  * distinguish external tables from managed tables.
  */
+@InterfaceAudience.Public
+@InterfaceStability.Stable
 public interface HiveMetaHook {
   /**
    * Called before a new table definition is added to the metastore

http://git-wip-us.apache.org/repos/asf/hive/blob/16bfb9c9/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java
index bd8c60a..203dc0a 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java
@@ -21,6 +21,8 @@ package org.apache.hadoop.hive.ql.metadata;
 import java.util.Map;
 
 import org.apache.hadoop.conf.Configurable;
+import org.apache.hadoop.hive.common.classification.InterfaceAudience;
+import org.apache.hadoop.hive.common.classification.InterfaceStability;
 import org.apache.hadoop.hive.metastore.HiveMetaHook;
 import org.apache.hadoop.hive.ql.plan.TableDesc;
 import org.apache.hadoop.hive.serde2.AbstractSerDe;
@@ -47,6 +49,8 @@ import org.apache.hadoop.mapred.OutputFormat;
  * Storage handler classes are plugged in using the STORED BY 'classname'
  * clause in CREATE TABLE.
  */
+@InterfaceAudience.Public
+@InterfaceStability.Stable
 public interface HiveStorageHandler extends Configurable {
   /**
    * @return Class providing an implementation of {@link InputFormat}

http://git-wip-us.apache.org/repos/asf/hive/blob/16bfb9c9/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStoragePredicateHandler.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStoragePredicateHandler.java
b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStoragePredicateHandler.java
index 9324628..2dbdc47 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStoragePredicateHandler.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStoragePredicateHandler.java
@@ -20,6 +20,8 @@ package org.apache.hadoop.hive.ql.metadata;
 
 import java.io.Serializable;
 
+import org.apache.hadoop.hive.common.classification.InterfaceAudience;
+import org.apache.hadoop.hive.common.classification.InterfaceStability;
 import org.apache.hadoop.hive.ql.plan.ExprNodeDesc;
 import org.apache.hadoop.hive.ql.plan.ExprNodeGenericFuncDesc;
 import org.apache.hadoop.hive.serde2.Deserializer;
@@ -30,6 +32,8 @@ import org.apache.hadoop.mapred.JobConf;
  * HiveStorageHandler}; it should only be implemented by handlers which
  * support decomposition of predicates being pushed down into table scans.
  */
+@InterfaceAudience.Public
+@InterfaceStability.Stable
 public interface HiveStoragePredicateHandler {
 
   /**
@@ -63,6 +67,8 @@ public interface HiveStoragePredicateHandler {
   /**
    * Struct class for returning multiple values from decomposePredicate.
    */
+  @InterfaceAudience.Public
+  @InterfaceStability.Stable
   public static class DecomposedPredicate {
     /**
      * Portion of predicate to be evaluated by storage handler.  Hive

http://git-wip-us.apache.org/repos/asf/hive/blob/16bfb9c9/ql/src/java/org/apache/hadoop/hive/ql/metadata/InputEstimator.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/InputEstimator.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/InputEstimator.java
index 5826869..874cb8d 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/InputEstimator.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/InputEstimator.java
@@ -18,10 +18,14 @@
 
 package org.apache.hadoop.hive.ql.metadata;
 
+import org.apache.hadoop.hive.common.classification.InterfaceAudience;
+import org.apache.hadoop.hive.common.classification.InterfaceStability;
 import org.apache.hadoop.hive.ql.exec.TableScanOperator;
 import org.apache.hadoop.mapred.JobConf;
 
 // Plugin interface for storage handler which supports input estimation
+@InterfaceAudience.Public
+@InterfaceStability.Stable
 public interface InputEstimator {
 
   /**


Mime
View raw message