pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Pig Wiki] Update of "LoadStoreMigrationGuide" by PradeepKamath
Date Wed, 10 Feb 2010 22:03:14 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Pig Wiki" for change notification.

The "LoadStoreMigrationGuide" page has been changed by PradeepKamath.
http://wiki.apache.org/pig/LoadStoreMigrationGuide?action=diff&rev1=11&rev2=12

--------------------------------------------------

  
  
  
- == Examples ==
+ = Examples =
  
- === Loader ===
+ == Loader ==
  
  The loader implementation in the example is a loader for text data with line delimiter as
'\n' and '\t' as default field delimiter (which can be overridden by passing a different field
delimiter in the constructor) - this is similar to current !PigStorage loader in Pig. The
new implementation uses an existing Hadoop supported !Inputformat - !TextInputFormat as the
underlying !InputFormat.
  
- == Old Implementation ==
+ === Old Implementation ===
  {{{
  /**
   * A load function that parses a line of input into fields using a delimiter to set the
fields. 
@@ -150, +150 @@

      }
   }
  }}}
- == New Implementation ==
+ === New Implementation ===
  {{{
  public class SimpleTextLoader extends LoadFunc {
      protected RecordReader in = null;               
@@ -258, +258 @@

  
  }}}
  
+ == Storer ==
+ 
+ The storer implementation in the example is a storer for text data with line delimiter as
'\n' and '\t' as default field delimiter (which can be overridden by passing a different field
delimiter in the constructor) - this is similar to current !PigStorage storer in Pig. The
new implementation uses an existing Hadoop supported !OutputFormat - !TextOutputFormat as
the underlying !OutputFormat.
+ 
+ === Old Implementation ===
+ 
+ === New Implementation ===
+ 

Mime
View raw message