public interface QueryOutputFormatter extends Externalizable
InMemoryOutputFormatter
or
PersistedOutputFormatter
for formatting the result.Modifier and Type | Method and Description |
---|---|
void |
close()
Close the formatter.
|
void |
commit()
Commit the formatting.
|
Long |
getFileSize()
Get size of the resultset file.
|
String |
getFinalOutputPath()
Get final location where formatted output is available
|
LensResultSetMetadata |
getMetadata()
Get resultset metadata
|
Integer |
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.
|
readExternal, writeExternal
void init(QueryContext ctx, LensResultSetMetadata metadata) throws IOException
ctx
- The QueryContext
objectmetadata
- LensResultSetMetadata
objectIOException
- 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()
Integer getNumRows()
Long getFileSize()
LensResultSetMetadata getMetadata()
LensResultSetMetadata
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.