Dear Wiki user,

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

The "Pig070LoadStoreHowTo" page has been changed by PradeepKamath.
http://wiki.apache.org/pig/Pig070LoadStoreHowTo?action=diff&rev1=1&rev2=2

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

- =Overview=
+ = Overview =
  This page describes how to go about writing Load functions and Store 
functions using the API available in Pig 0.7.0. 
  
  == How to implement a Loader ==
- [[ !LoadFunc || 
http://svn.apache.org/viewvc/hadoop/pig/trunk/src/org/apache/pig/LoadFunc.java?view=markup
 ]]  abstract class which has the main methods for loading data and for most 
use case it might suffice to extend it. There are 3 other optional interfaces 
which can be implemented to achieve extended functionality:
+ [[LoadFunc || 
http://svn.apache.org/viewvc/hadoop/pig/trunk/src/org/apache/pig/LoadFunc.java?view=markup]]
  abstract class which has the main methods for loading data and for most use 
case it might suffice to extend it. There are 3 other optional interfaces which 
can be implemented to achieve extended functionality:
   * !LoadMetadata has methods to deal with metadata - most implementation of 
loaders don't need to implement this unless they interact with some metadata 
system. The getSchema() method in this interface provides a way for 
  loader implementations to communicate the schema of the data back to pig. If 
a loader implementation returns data comprised of fields of real types (rather 
than !DataByteArray fields), it should provide the schema describing
  the data returned through the getSchema() method. The other methods are 
concerned with other types of metadata like partition keys and statistics. 
Implementations can return null return values for these methods if they are

Reply via email to