|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.lib.query.AbstractOutputFormatter
org.apache.lens.lib.query.AbstractFileFormatter
org.apache.lens.lib.query.ZipFileFormatter
public class ZipFileFormatter
Zip file formatter.
Creates a zip on hadoop compatible file system, with ability to split output across multiple part files and provide a final zip output file.
| Field Summary | |
|---|---|
static String |
PART_SUFFIX
The part suffix. |
| Fields inherited from class org.apache.lens.lib.query.AbstractOutputFormatter |
|---|
HEADER_TYPE |
| Constructor Summary | |
|---|---|
ZipFileFormatter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.lens.lib.query.AbstractFileFormatter |
|---|
getFinalOutputPath, getNumRows, init, writeFooter |
| Methods inherited from class org.apache.lens.lib.query.AbstractOutputFormatter |
|---|
getMetadata |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PART_SUFFIX
| Constructor Detail |
|---|
public ZipFileFormatter()
| Method Detail |
|---|
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 header
IOException - Signals that an I/O exception has occurred.
public void writeFooter(String footer)
throws IOException
FileFormatter
footer - the footer
IOException - Signals that an I/O exception has occurred.
public void writeRow(String row)
throws IOException
FileFormatter
row - the row
IOException - Signals that an I/O exception has occurred.
public void writeHeader()
throws IOException
QueryOutputFormatter
writeHeader in interface QueryOutputFormatterwriteHeader in class AbstractFileFormatterIOException - Signals that an I/O exception has occurred.public org.apache.hadoop.fs.Path getTmpPath()
FileFormatter
public String getEncoding()
FileFormatter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||