public abstract class WrappedFileFormatter extends AbstractOutputFormatter
FileFormatter, which can have implementations like HadoopFileFormatter or
ZipFileFormatter.| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG
The Constant LOG.
|
HEADER_TYPE| Constructor and Description |
|---|
WrappedFileFormatter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the formatter.
|
void |
commit()
Commit the formatting.
|
String |
getEncoding() |
String |
getFinalOutputPath()
Get final location where formatted output is available
|
int |
getNumRows()
Get total number of rows in result.
|
org.apache.hadoop.fs.Path |
getTmpPath() |
void |
init(QueryContext ctx,
LensResultSetMetadata metadata)
Initialize the formatter.
|
void |
writeFooter()
Write the footer.
|
void |
writeHeader()
Write the header.
|
getMetadatapublic 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 void writeHeader()
throws IOException
QueryOutputFormatterIOException - Signals that an I/O exception has occurred.public void writeFooter()
throws IOException
QueryOutputFormatterIOException - Signals that an I/O exception has occurred.public int getNumRows()
QueryOutputFormatterpublic void commit()
throws IOException
QueryOutputFormatterIOException - Signals that an I/O exception has occurred.public void close()
throws IOException
QueryOutputFormatterIOException - Signals that an I/O exception has occurred.public String getFinalOutputPath()
QueryOutputFormatterpublic org.apache.hadoop.fs.Path getTmpPath()
public String getEncoding()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.