|
||||||||||
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
public abstract class AbstractOutputFormatter
Provides abstract implementation of the query output formatter.
In this it initializes column names, types column object inspectors Also provides methods to construct header from serde
Field Summary | |
---|---|
static String |
HEADER_TYPE
The Constant HEADER_TYPE. |
Constructor Summary | |
---|---|
AbstractOutputFormatter()
|
Method Summary | |
---|---|
LensResultSetMetadata |
getMetadata()
Get resultset metadata |
void |
init(QueryContext ctx,
LensResultSetMetadata metadata)
Initialize the formatter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.lens.server.api.query.QueryOutputFormatter |
---|
close, commit, getFinalOutputPath, getNumRows, writeFooter, writeHeader |
Field Detail |
---|
public static final String HEADER_TYPE
Constructor Detail |
---|
public AbstractOutputFormatter()
Method Detail |
---|
public void init(QueryContext ctx, LensResultSetMetadata metadata) throws IOException
QueryOutputFormatter
init
in interface QueryOutputFormatter
ctx
- The QueryContext
objectmetadata
- LensResultSetMetadata
object
IOException
- Signals that an I/O exception has occurred.public LensResultSetMetadata getMetadata()
QueryOutputFormatter
getMetadata
in interface QueryOutputFormatter
LensResultSetMetadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |