|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryOutputFormatter
The interface for query result formatting
This is an abstract interface, user should implementInMemoryOutputFormatter
or
PersistedOutputFormatter
for formatting the result.
Method Summary | |
---|---|
void |
close()
Close the formatter. |
void |
commit()
Commit the formatting. |
String |
getFinalOutputPath()
Get final location where formatted output is available |
LensResultSetMetadata |
getMetadata()
Get resultset metadata |
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. |
Method Detail |
---|
void init(QueryContext ctx, LensResultSetMetadata metadata) throws IOException
ctx
- The QueryContext
objectmetadata
- LensResultSetMetadata
object
IOException
- Signals that an I/O exception has occurred.void writeHeader() throws IOException
IOException
- Signals that an I/O exception has occurred.void writeFooter() throws IOException
IOException
- Signals that an I/O exception has occurred.void commit() throws IOException
IOException
- Signals that an I/O exception has occurred.void close() throws IOException
IOException
- Signals that an I/O exception has occurred.String getFinalOutputPath()
int getNumRows()
LensResultSetMetadata getMetadata()
LensResultSetMetadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |