hadoop-hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pras...@apache.org
Subject svn commit: r773043 - in /hadoop/hive/trunk: CHANGES.txt ql/src/java/org/apache/hadoop/hive/ql/hooks/ReadEntity.java ql/src/java/org/apache/hadoop/hive/ql/hooks/WriteEntity.java
Date Fri, 08 May 2009 16:24:04 GMT
Author: prasadc
Date: Fri May  8 16:24:03 2009
New Revision: 773043

URL: http://svn.apache.org/viewvc?rev=773043&view=rev
Log:
HIVE-476 Add getTable  and getPartition calls to PreExecution hook interface.

Modified:
    hadoop/hive/trunk/CHANGES.txt
    hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/ReadEntity.java
    hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/WriteEntity.java

Modified: hadoop/hive/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/CHANGES.txt?rev=773043&r1=773042&r2=773043&view=diff
==============================================================================
--- hadoop/hive/trunk/CHANGES.txt (original)
+++ hadoop/hive/trunk/CHANGES.txt Fri May  8 16:24:03 2009
@@ -30,6 +30,9 @@
     HIVE-463. Add a pre execution hook to ql
     (Ashish Thusoo via prasadc)
 
+    HIVE-476. Add getTable and getPartition calls to the ReadEntity and
+     WriteEntity objects in PreExecute hooks. (Ashish Thsoo via prasadc) 
+
   IMPROVEMENTS
     HIVE-389. Option to build without ivy (jssarma)
 

Modified: hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/ReadEntity.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/ReadEntity.java?rev=773043&r1=773042&r2=773043&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/ReadEntity.java (original)
+++ hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/ReadEntity.java Fri May
 8 16:24:03 2009
@@ -73,7 +73,7 @@
   /**
    * Get the parameter map of the Entity.
    */
-  public Map<String, String> getParameter() {
+  public Map<String, String> getParameters() {
     if (p != null) {
       return p.getTPartition().getParameters();
     }
@@ -93,6 +93,20 @@
       return t.getDataLocation();
     }
   }
+
+  /**
+   * Get partition entity.
+   */
+  public Partition getPartition() {
+    return p;
+  }
+
+  /**
+   * Get table entity.
+   */
+  public Table getTable() {
+    return t;
+  }
   
   /**
    * toString function.

Modified: hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/WriteEntity.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/WriteEntity.java?rev=773043&r1=773042&r2=773043&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/WriteEntity.java (original)
+++ hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/WriteEntity.java Fri May
 8 16:24:03 2009
@@ -118,7 +118,21 @@
     
     return null;
   }
-  
+ 
+  /**
+   * Get the partition associated with the entity.
+   */
+  public Partition getPartition() {
+    return p;
+  }
+
+  /**
+   * Get the table associated with the entity.
+   */
+  public Table getTable() {
+    return t;
+  }
+
   /**
    * toString function.
    */



Mime
View raw message