public class HadoopFileFormatter extends AbstractFileFormatter
HEADER_TYPE| Constructor and Description |
|---|
HadoopFileFormatter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the formatter.
|
void |
commit()
Commit the formatting.
|
String |
getEncoding()
Get the result encoding, if any
|
org.apache.hadoop.fs.Path |
getTmpPath()
Get the temporary path of the result, if any
|
void |
setupOutputs()
Setup outputs for file formatter.
|
void |
writeFooter(String footer)
Write the footer passed.
|
void |
writeHeader(String header)
Write the header passed.
|
void |
writeRow(String row)
Write the row passed.
|
getFileSize, getFinalOutputPath, getNumRows, init, readExternal, writeExternal, writeFooter, writeHeadergetMetadatapublic void setupOutputs()
throws IOException
FileFormatterIOException - Signals that an I/O exception has occurred.public void writeHeader(String header) throws IOException
FileFormatterheader - the headerIOException - Signals that an I/O exception has occurred.public void writeFooter(String footer) throws IOException
FileFormatterfooter - the footerIOException - Signals that an I/O exception has occurred.public void writeRow(String row) throws IOException
FileFormatterrow - the rowIOException - Signals that an I/O exception has occurred.public void commit()
throws IOException
QueryOutputFormatterIOException - Signals that an I/O exception has occurred.public void close()
throws IOException
QueryOutputFormatterIOException - Signals that an I/O exception has occurred.public org.apache.hadoop.fs.Path getTmpPath()
FileFormatterpublic String getEncoding()
FileFormatterCopyright © 2014–2016 Apache Software Foundation. All rights reserved.