|
||||||||||
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
public abstract class AbstractFileFormatter
Abstract implementation of FileFormatter
, which gets column details from AbstractOutputFormatter
.
Field Summary |
---|
Fields inherited from class org.apache.lens.lib.query.AbstractOutputFormatter |
---|
HEADER_TYPE |
Constructor Summary | |
---|---|
AbstractFileFormatter()
|
Method Summary | |
---|---|
String |
getFinalOutputPath()
Get final location where formatted output is available |
int |
getNumRows()
Get total number of rows in result. |
void |
init(QueryContext ctx,
LensResultSetMetadata metadata)
Initialize the formatter. |
void |
writeFooter()
Write the footer. |
void |
writeHeader()
Write the header. |
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 |
Methods inherited from interface org.apache.lens.lib.query.FileFormatter |
---|
getEncoding, getTmpPath, setupOutputs, writeFooter, writeHeader, writeRow |
Methods inherited from interface org.apache.lens.server.api.query.QueryOutputFormatter |
---|
close, commit |
Constructor Detail |
---|
public AbstractFileFormatter()
Method Detail |
---|
public void init(QueryContext ctx, LensResultSetMetadata metadata) throws IOException
QueryOutputFormatter
init
in interface QueryOutputFormatter
init
in class AbstractOutputFormatter
ctx
- The QueryContext
objectmetadata
- LensResultSetMetadata
object
IOException
- Signals that an I/O exception has occurred.public int getNumRows()
QueryOutputFormatter
getNumRows
in interface QueryOutputFormatter
public void writeHeader() throws IOException
QueryOutputFormatter
writeHeader
in interface QueryOutputFormatter
IOException
- Signals that an I/O exception has occurred.public void writeFooter() throws IOException
QueryOutputFormatter
writeFooter
in interface QueryOutputFormatter
IOException
- Signals that an I/O exception has occurred.public String getFinalOutputPath()
QueryOutputFormatter
getFinalOutputPath
in interface QueryOutputFormatter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |