public class ZipFileFormatter extends AbstractFileFormatter
| Modifier and Type | Field and Description | 
|---|---|
| static String | PART_SUFFIXThe part suffix. | 
HEADER_TYPE| Constructor and Description | 
|---|
| ZipFileFormatter() | 
| 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()Write the header. | 
| void | writeHeader(String header)Write the header passed. | 
| void | writeRow(String row)Write the row passed. | 
getFinalOutputPath, getNumRows, init, writeFootergetMetadatapublic static final String PART_SUFFIX
public void setupOutputs()
                  throws IOException
FileFormatterIOException - 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 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 writeHeader()
                 throws IOException
QueryOutputFormatterwriteHeader in interface QueryOutputFormatterwriteHeader in class AbstractFileFormatterIOException - Signals that an I/O exception has occurred.public org.apache.hadoop.fs.Path getTmpPath()
FileFormatterpublic String getEncoding()
FileFormatterCopyright © 2014–2015 Apache Software Foundation. All rights reserved.