org.apache.pig.builtin
Class PigDump
java.lang.Object
org.apache.pig.builtin.PigDump
- All Implemented Interfaces:
- StoreFunc
public class PigDump
- extends Object
- implements StoreFunc
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. |
void |
putNext(Tuple f)
Write a tuple the output stream to which this instance was
previously bound. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
recordDelimiter
public static String recordDelimiter
PigDump
public PigDump()
bindTo
public void bindTo(OutputStream os)
throws IOException
- Description copied from interface:
StoreFunc
- Specifies the OutputStream to write to. This will be called before
store(Tuple) is invoked.
- Specified by:
bindTo
in interface StoreFunc
- Parameters:
os
- The stream to write tuples to.
- Throws:
IOException
finish
public void finish()
throws IOException
- Description copied from interface:
StoreFunc
- Do any kind of post processing because the last tuple has been
stored. DO NOT CLOSE THE STREAM in this method. The stream will be
closed later outside of this function.
- Specified by:
finish
in interface StoreFunc
- Throws:
IOException
putNext
public void putNext(Tuple f)
throws IOException
- Description copied from interface:
StoreFunc
- Write a tuple the output stream to which this instance was
previously bound.
- Specified by:
putNext
in interface StoreFunc
- Parameters:
f
- the tuple to store.
- Throws:
IOException
Copyright © ${year} The Apache Software Foundation