You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by sm...@apache.org on 2009/04/24 19:04:09 UTC

svn commit: r768372 - /hadoop/pig/trunk/src/org/apache/pig/impl/logicalLayer/schema/SchemaUtil.java

Author: sms
Date: Fri Apr 24 17:04:09 2009
New Revision: 768372

URL: http://svn.apache.org/viewvc?rev=768372&view=rev
Log:
PIG-712: Added utility functions to create schemas for tuples and bags (zjffdu via sms)

Modified:
    hadoop/pig/trunk/src/org/apache/pig/impl/logicalLayer/schema/SchemaUtil.java

Modified: hadoop/pig/trunk/src/org/apache/pig/impl/logicalLayer/schema/SchemaUtil.java
URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/src/org/apache/pig/impl/logicalLayer/schema/SchemaUtil.java?rev=768372&r1=768371&r2=768372&view=diff
==============================================================================
--- hadoop/pig/trunk/src/org/apache/pig/impl/logicalLayer/schema/SchemaUtil.java (original)
+++ hadoop/pig/trunk/src/org/apache/pig/impl/logicalLayer/schema/SchemaUtil.java Fri Apr 24 17:04:09 2009
@@ -42,7 +42,7 @@
      * @param tupleName
      * @param fieldNames
      * @param dataTypes
-     * @return
+     * @return tuple schema
      * @throws FrontendException
      */
     public static Schema newTupleSchema(String tupleName,
@@ -71,7 +71,7 @@
      * @param tupleName
      * @param fieldNames
      * @param dataTypes
-     * @return
+     * @return tuple schema
      * @throws FrontendException
      */
     public static Schema newTupleSchema(String tupleName, String[] fieldNames,
@@ -84,9 +84,9 @@
      * Create a new tuple schema according the two list: names of fields, types
      * of fields, the default tuple name is t.
      * 
-     * @param names
+     * @param fieldNames
      * @param dataTypes
-     * @return
+     * @return tuple schema
      * @throws FrontendException
      */
     public static Schema newTupleSchema(List<String> fieldNames,
@@ -99,7 +99,7 @@
      * default names of fields are f0,f1,f2..., and the tuple name is t.
      * 
      * @param dataTypes
-     * @return
+     * @return tuple schema
      * @throws FrontendException
      */
     public static Schema newTupleSchema(List<Byte> dataTypes)
@@ -114,7 +114,7 @@
      * 
      * @param names
      * @param dataTypes
-     * @return
+     * @return tuple schema
      * @throws FrontendException
      */
     public static Schema newTupleSchema(String[] names, Byte[] dataTypes)
@@ -128,7 +128,7 @@
      * default names of fields are f0,f1,f2..., and the tuple name is t.
      * 
      * @param dataTypes
-     * @return
+     * @return tuple schema
      * @throws FrontendException
      */
     public static Schema newTupleSchema(Byte[] dataTypes)
@@ -152,7 +152,7 @@
      * @param tupleName
      * @param fieldNames
      * @param dataTypes
-     * @return
+     * @return bag schema
      * @throws FrontendException
      */
     public static Schema newBagSchema(String bagName, String tupleName,
@@ -179,7 +179,7 @@
      * 
      * @param names
      * @param dataTypes
-     * @return
+     * @return bag schema
      * @throws FrontendException
      */
     public static Schema newBagSchema(List<String> names, List<Byte> dataTypes)
@@ -199,7 +199,7 @@
      * is b.
      * 
      * @param dataTypes
-     * @return
+     * @return bag schema
      * @throws FrontendException
      */
     public static Schema newBagSchema(List<Byte> dataTypes)
@@ -214,7 +214,7 @@
      * 
      * @param names
      * @param dataTypes
-     * @return
+     * @return bag schema
      * @throws FrontendException
      */
     public static Schema newBagSchema(String[] names, Byte[] dataTypes)
@@ -227,7 +227,7 @@
      * tuple name is t, and the bag name is b.
      * 
      * @param dataTypes
-     * @return
+     * @return bag schema
      * @throws FrontendException
      */
     public static Schema newBagSchema(Byte[] dataTypes)