public class FilePersistentFormatter extends WrappedFileFormatter implements PersistedOutputFormatter
PersistedOutputFormatter
This is a WrappedFileFormatter which can wrap any FileFormatter.| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG
The Constant LOG.
|
HEADER_TYPE| Constructor and Description |
|---|
FilePersistentFormatter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRowsFromPersistedPath(org.apache.hadoop.fs.Path persistedDir)
Add result rows from the persisted path.
|
void |
init(QueryContext ctx,
LensResultSetMetadata metadata)
Initialize the formatter.
|
close, commit, getEncoding, getFinalOutputPath, getNumRows, getTmpPath, writeFooter, writeHeadergetMetadataequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, commit, getFinalOutputPath, getMetadata, getNumRows, writeFooter, writeHeaderpublic void init(QueryContext ctx, LensResultSetMetadata metadata) throws IOException
QueryOutputFormatterinit in interface QueryOutputFormatterinit in class WrappedFileFormatterctx - The QueryContext objectmetadata - LensResultSetMetadata objectIOException - Signals that an I/O exception has occurred.public void addRowsFromPersistedPath(org.apache.hadoop.fs.Path persistedDir)
throws IOException
PersistedOutputFormatteraddRowsFromPersistedPath in interface PersistedOutputFormatterpersistedDir - the persisted pathIOException - Signals that an I/O exception has occurred.Copyright © 2014–2015 Apache Software Foundation. All rights reserved.