public class ZipFileFormatter extends AbstractFileFormatter
Modifier and Type | Field and Description |
---|---|
static String |
PART_SUFFIX
The 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.
|
getFileSize, getFinalOutputPath, getNumRows, init, readExternal, writeExternal, writeFooter
getMetadata
public static final String PART_SUFFIX
public void setupOutputs() throws IOException
FileFormatter
IOException
- 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 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 writeHeader() throws IOException
QueryOutputFormatter
writeHeader
in interface QueryOutputFormatter
writeHeader
in class AbstractFileFormatter
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.