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, writeHeader
getMetadata
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, commit, getFileSize, getFinalOutputPath, getMetadata, getNumRows, writeFooter, writeHeader
readExternal, writeExternal
public void init(QueryContext ctx, LensResultSetMetadata metadata) throws IOException
QueryOutputFormatter
init
in interface QueryOutputFormatter
init
in class WrappedFileFormatter
ctx
- The QueryContext
objectmetadata
- LensResultSetMetadata
objectIOException
- Signals that an I/O exception has occurred.public void addRowsFromPersistedPath(org.apache.hadoop.fs.Path persistedDir) throws IOException
PersistedOutputFormatter
addRowsFromPersistedPath
in interface PersistedOutputFormatter
persistedDir
- the persisted pathIOException
- Signals that an I/O exception has occurred.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.