public abstract class AbstractFileFormatter extends AbstractOutputFormatter implements FileFormatter
FileFormatter, which gets column details from AbstractOutputFormatter.HEADER_TYPE| Constructor and Description |
|---|
AbstractFileFormatter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getMetadataequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEncoding, getTmpPath, setupOutputs, writeFooter, writeHeader, writeRowclose, commitpublic void init(QueryContext ctx, LensResultSetMetadata metadata) throws IOException
QueryOutputFormatterinit in interface QueryOutputFormatterinit in class AbstractOutputFormatterctx - The QueryContext objectmetadata - LensResultSetMetadata objectIOException - Signals that an I/O exception has occurred.public int getNumRows()
QueryOutputFormattergetNumRows in interface QueryOutputFormatterpublic void writeHeader()
throws IOException
QueryOutputFormatterwriteHeader in interface QueryOutputFormatterIOException - Signals that an I/O exception has occurred.public void writeFooter()
throws IOException
QueryOutputFormatterwriteFooter in interface QueryOutputFormatterIOException - Signals that an I/O exception has occurred.public String getFinalOutputPath()
QueryOutputFormattergetFinalOutputPath in interface QueryOutputFormatterCopyright © 2014–2015 Apache Software Foundation. All rights reserved.