public class FilePersistentFormatter extends WrappedFileFormatter implements PersistedOutputFormatter
PersistedOutputFormatter
This is a WrappedFileFormatter which can wrap any FileFormatter.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, getFileSize, getFinalOutputPath, getNumRows, getTmpPath, readExternal, writeExternal, writeFooter, writeHeadergetMetadataequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, commit, getFileSize, getFinalOutputPath, getMetadata, getNumRows, writeFooter, writeHeaderreadExternal, writeExternalpublic 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–2016 Apache Software Foundation. All rights reserved.