|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.lib.query.AbstractOutputFormatter org.apache.lens.lib.query.AbstractFileFormatter org.apache.lens.lib.query.HadoopFileFormatter
public class HadoopFileFormatter
A hadoop file formatter
This has capability to create output on Hadoop compatible files systems, with hadoop supported compression codecs.
Field Summary |
---|
Fields inherited from class org.apache.lens.lib.query.AbstractOutputFormatter |
---|
HEADER_TYPE |
Constructor Summary | |
---|---|
HadoopFileFormatter()
|
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(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, writeHeader |
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 |
Constructor Detail |
---|
public HadoopFileFormatter()
Method Detail |
---|
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 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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |