|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StoreFunc
This interface is used to implement functions to write records from a dataset.
Method Summary | |
---|---|
void |
bindTo(OutputStream os)
Specifies the OutputStream to write to. |
void |
finish()
Do any kind of post processing because the last tuple has been stored. |
Class |
getStorePreparationClass()
Specify a backend specific class to use to prepare for storing output. |
void |
putNext(Tuple f)
Write a tuple the output stream to which this instance was previously bound. |
Method Detail |
---|
void bindTo(OutputStream os) throws IOException
os
- The stream to write tuples to.
IOException
void putNext(Tuple f) throws IOException
f
- the tuple to store.
IOException
void finish() throws IOException
IOException
Class getStorePreparationClass() throws IOException
PigOutputFormat.getRecordWriter(org.apache.hadoop.fs.FileSystem, org.apache.hadoop.mapred.JobConf, String, org.apache.hadoop.util.Progressable)
StoreFunc
implementation does not have a class to prepare
for storing output, it can return null and a default Pig implementation
will be used to prepare for storing output.
IOException
- if the class does not implement the expected
interface(s).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |