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, writeHeader
getMetadata
public void setupOutputs() throws IOException
FileFormatter
IOException
- Signals that an I/O exception has occurred.public void writeHeader(String header) throws IOException
FileFormatter
header
- the headerIOException
- Signals that an I/O exception has occurred.public void writeFooter(String footer) throws IOException
FileFormatter
footer
- the footerIOException
- Signals that an I/O exception has occurred.public void writeRow(String row) throws IOException
FileFormatter
row
- the rowIOException
- Signals that an I/O exception has occurred.public void commit() throws IOException
QueryOutputFormatter
IOException
- Signals that an I/O exception has occurred.public void close() throws IOException
QueryOutputFormatter
IOException
- Signals that an I/O exception has occurred.public org.apache.hadoop.fs.Path getTmpPath()
FileFormatter
public String getEncoding()
FileFormatter
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.