diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java index 868e5a57ee..c2594f797f 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java @@ -20,6 +20,8 @@ import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.conf.Configuration; +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.events.AddIndexEvent; import org.apache.hadoop.hive.metastore.events.AlterIndexEvent; @@ -44,7 +46,8 @@ * are called whenever an event occurs on metastore. Status of the event whether * it was successful or not is contained in container event object. */ - +@InterfaceAudience.Public +@InterfaceStability.Stable public abstract class MetaStoreEventListener implements Configurable { private Configuration conf; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStorePreEventListener.java b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStorePreEventListener.java index b09a1da011..bca6a31f54 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStorePreEventListener.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStorePreEventListener.java @@ -20,6 +20,8 @@ import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.conf.Configuration; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.api.InvalidOperationException; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; @@ -30,7 +32,8 @@ * to be performed before a particular event occurs on a metastore. These methods * are called before an event occurs on metastore. */ - +@InterfaceAudience.Public +@InterfaceStability.Stable public abstract class MetaStorePreEventListener implements Configurable { private Configuration conf; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/AddIndexEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/AddIndexEvent.java index 43ac0aa68d..57fe5d1a15 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/AddIndexEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/AddIndexEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore; import org.apache.hadoop.hive.metastore.api.Index; +@InterfaceAudience.Public +@InterfaceStability.Stable public class AddIndexEvent extends ListenerEvent { private final Index index; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/AddPartitionEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/AddPartitionEvent.java index 049cf71200..85f5fb84de 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/AddPartitionEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/AddPartitionEvent.java @@ -18,6 +18,8 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.Table; @@ -27,6 +29,8 @@ import java.util.Iterator; import java.util.List; +@InterfaceAudience.Public +@InterfaceStability.Stable public class AddPartitionEvent extends ListenerEvent { private final Table table; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterIndexEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterIndexEvent.java index 4a49700455..99e51f6039 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterIndexEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterIndexEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore; import org.apache.hadoop.hive.metastore.api.Index; +@InterfaceAudience.Public +@InterfaceStability.Stable public class AlterIndexEvent extends ListenerEvent { private final Index newIndex; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterPartitionEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterPartitionEvent.java index e5b8495e2d..4025f9f504 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterPartitionEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterPartitionEvent.java @@ -18,10 +18,14 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.Table; +@InterfaceAudience.Public +@InterfaceStability.Stable public class AlterPartitionEvent extends ListenerEvent { private final Partition oldPart; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterTableEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterTableEvent.java index 22ea5138fc..eb9d94fcc3 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterTableEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterTableEvent.java @@ -19,9 +19,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Table; +@InterfaceAudience.Public +@InterfaceStability.Stable public class AlterTableEvent extends ListenerEvent { private final Table newTable; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/ConfigChangeEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/ConfigChangeEvent.java index e06b960ba7..9d23dc8c13 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/ConfigChangeEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/ConfigChangeEvent.java @@ -18,8 +18,12 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore; +@InterfaceAudience.Public +@InterfaceStability.Stable public class ConfigChangeEvent extends ListenerEvent { private final String key; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateDatabaseEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateDatabaseEvent.java index 588c0dfb7e..e853aec138 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateDatabaseEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateDatabaseEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Database; +@InterfaceAudience.Public +@InterfaceStability.Stable public class CreateDatabaseEvent extends ListenerEvent { private final Database db; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateFunctionEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateFunctionEvent.java index 717ede25e5..0c6ab17d6d 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateFunctionEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateFunctionEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Function; +@InterfaceAudience.Public +@InterfaceStability.Stable public class CreateFunctionEvent extends ListenerEvent { private final Function function; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateTableEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateTableEvent.java index c0ff02d902..09a40bb98e 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateTableEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/CreateTableEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Table; +@InterfaceAudience.Public +@InterfaceStability.Stable public class CreateTableEvent extends ListenerEvent { private final Table table; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropDatabaseEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropDatabaseEvent.java index 4924c6e8f0..92e95a6f21 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropDatabaseEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropDatabaseEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Database; +@InterfaceAudience.Public +@InterfaceStability.Stable public class DropDatabaseEvent extends ListenerEvent { private final Database db; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropFunctionEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropFunctionEvent.java index 7190aae269..52f04ca46e 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropFunctionEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropFunctionEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Function; +@InterfaceAudience.Public +@InterfaceStability.Stable public class DropFunctionEvent extends ListenerEvent { private final Function function; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropIndexEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropIndexEvent.java index 06f2302a81..9b75055353 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropIndexEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropIndexEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore; import org.apache.hadoop.hive.metastore.api.Index; +@InterfaceAudience.Public +@InterfaceStability.Stable public class DropIndexEvent extends ListenerEvent { private final Index index; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropPartitionEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropPartitionEvent.java index e12fb8d525..d8f2ea968c 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropPartitionEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropPartitionEvent.java @@ -18,6 +18,8 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.Table; @@ -25,6 +27,8 @@ import java.util.Collections; import java.util.Iterator; +@InterfaceAudience.Public +@InterfaceStability.Stable public class DropPartitionEvent extends ListenerEvent { private final Table table; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropTableEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropTableEvent.java index 34efa5ffe9..2f2ea9dc01 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropTableEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/DropTableEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Table; +@InterfaceAudience.Public +@InterfaceStability.Stable public class DropTableEvent extends ListenerEvent { private final Table table; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/InsertEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/InsertEvent.java index 56607d3269..d451122a59 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/InsertEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/InsertEvent.java @@ -18,6 +18,8 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStoreClient; import org.apache.hadoop.hive.metastore.api.GetTableRequest; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; @@ -30,6 +32,8 @@ import java.util.ArrayList; import java.util.List; +@InterfaceAudience.Public +@InterfaceStability.Stable public class InsertEvent extends ListenerEvent { private final Table tableObj; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/ListenerEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/ListenerEvent.java index b741549e4d..cd66f10ba0 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/ListenerEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/ListenerEvent.java @@ -18,6 +18,8 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.EnvironmentContext; @@ -31,7 +33,8 @@ * * This class is not thread-safe and not expected to be called in parallel. */ - +@InterfaceAudience.Public +@InterfaceStability.Stable @NotThreadSafe public abstract class ListenerEvent { diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/LoadPartitionDoneEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/LoadPartitionDoneEvent.java index 20709661b6..b56b3bb3d4 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/LoadPartitionDoneEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/LoadPartitionDoneEvent.java @@ -20,9 +20,13 @@ import java.util.Map; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Table; +@InterfaceAudience.Public +@InterfaceStability.Stable public class LoadPartitionDoneEvent extends ListenerEvent { private final Table table; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAddIndexEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAddIndexEvent.java index baa04a5866..94a8836e7f 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAddIndexEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAddIndexEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore; import org.apache.hadoop.hive.metastore.api.Index; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreAddIndexEvent extends PreEventContext { private final Index table; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAddPartitionEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAddPartitionEvent.java index 26b9380652..99105f3e56 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAddPartitionEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAddPartitionEvent.java @@ -18,6 +18,8 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.Table; @@ -27,6 +29,8 @@ import java.util.Iterator; import java.util.List; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreAddPartitionEvent extends PreEventContext { private final Table table; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterIndexEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterIndexEvent.java index 97cf305671..a2b7662b2d 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterIndexEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterIndexEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore; import org.apache.hadoop.hive.metastore.api.Index; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreAlterIndexEvent extends PreEventContext { private final Index newIndex; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterPartitionEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterPartitionEvent.java index 4349752a35..5f29699179 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterPartitionEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterPartitionEvent.java @@ -20,9 +20,13 @@ import java.util.List; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Partition; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreAlterPartitionEvent extends PreEventContext { private final String dbName; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterTableEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterTableEvent.java index 8cbb9a5e73..4e82ad1aec 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterTableEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterTableEvent.java @@ -19,9 +19,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Table; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreAlterTableEvent extends PreEventContext { private final Table newTable; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAuthorizationCallEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAuthorizationCallEvent.java index 446a6ee554..54f6dee12a 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAuthorizationCallEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAuthorizationCallEvent.java @@ -18,8 +18,12 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreAuthorizationCallEvent extends PreEventContext { public PreAuthorizationCallEvent (HMSHandler handler) { diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreCreateDatabaseEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreCreateDatabaseEvent.java index c980dc43bc..a5f87e11ca 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreCreateDatabaseEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreCreateDatabaseEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Database; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreCreateDatabaseEvent extends PreEventContext { private final Database db; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreCreateTableEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreCreateTableEvent.java index d97f33f34c..799ad97347 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreCreateTableEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreCreateTableEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Table; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreCreateTableEvent extends PreEventContext { private final Table table; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropDatabaseEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropDatabaseEvent.java index 375f60343e..adcca6f062 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropDatabaseEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropDatabaseEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Database; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreDropDatabaseEvent extends PreEventContext { private final Database db; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropIndexEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropIndexEvent.java index 437e5c1468..c7fd44b234 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropIndexEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropIndexEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore; import org.apache.hadoop.hive.metastore.api.Index; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreDropIndexEvent extends PreEventContext { private final Index index; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropPartitionEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropPartitionEvent.java index 456164f744..e890dedc9c 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropPartitionEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropPartitionEvent.java @@ -18,6 +18,8 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.Table; @@ -25,6 +27,8 @@ import java.util.Collections; import java.util.Iterator; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreDropPartitionEvent extends PreEventContext { private final Iterable partitions; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropTableEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropTableEvent.java index df221964f3..6c7f169a90 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropTableEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropTableEvent.java @@ -18,9 +18,13 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Table; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreDropTableEvent extends PreEventContext { private final Table table; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreEventContext.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreEventContext.java index ee24a35f96..d61e0f4645 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreEventContext.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreEventContext.java @@ -18,13 +18,16 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; /** * Base class for all the events which are defined for metastore. */ - +@InterfaceAudience.Public +@InterfaceStability.Stable public abstract class PreEventContext { public static enum PreEventType { diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreLoadPartitionDoneEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreLoadPartitionDoneEvent.java index 3635db09d8..82b72eda8a 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreLoadPartitionDoneEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreLoadPartitionDoneEvent.java @@ -20,8 +20,12 @@ import java.util.Map; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreLoadPartitionDoneEvent extends PreEventContext { private final String dbName; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreReadDatabaseEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreReadDatabaseEvent.java index d415620da5..f223960449 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreReadDatabaseEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreReadDatabaseEvent.java @@ -18,12 +18,16 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Database; /** * Database read event */ +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreReadDatabaseEvent extends PreEventContext { private final Database db; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreReadTableEvent.java b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreReadTableEvent.java index b93da67825..e9d353af28 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreReadTableEvent.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/events/PreReadTableEvent.java @@ -18,12 +18,16 @@ package org.apache.hadoop.hive.metastore.events; +import org.apache.hadoop.hive.common.classification.InterfaceAudience; +import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler; import org.apache.hadoop.hive.metastore.api.Table; /** * Table read event */ +@InterfaceAudience.Public +@InterfaceStability.Stable public class PreReadTableEvent extends PreEventContext { private final Table table;