org.apache.lens.lib.query
Class FilePersistentFormatter
java.lang.Object
org.apache.lens.lib.query.AbstractOutputFormatter
org.apache.lens.lib.query.WrappedFileFormatter
org.apache.lens.lib.query.FilePersistentFormatter
- All Implemented Interfaces:
- PersistedOutputFormatter, QueryOutputFormatter
public class FilePersistentFormatter
- extends WrappedFileFormatter
- implements PersistedOutputFormatter
File formatter for PersistedOutputFormatter
This is a WrappedFileFormatter
which can wrap any FileFormatter
.
Field Summary |
static org.apache.commons.logging.Log |
LOG
The Constant LOG. |
LOG
public static final org.apache.commons.logging.Log LOG
- The Constant LOG.
FilePersistentFormatter
public FilePersistentFormatter()
init
public void init(QueryContext ctx,
LensResultSetMetadata metadata)
throws IOException
- Description copied from interface:
QueryOutputFormatter
- Initialize the formatter.
- Specified by:
init
in interface QueryOutputFormatter
- Overrides:
init
in class WrappedFileFormatter
- Parameters:
ctx
- The QueryContext
objectmetadata
- LensResultSetMetadata
object
- Throws:
IOException
- Signals that an I/O exception has occurred.
addRowsFromPersistedPath
public void addRowsFromPersistedPath(org.apache.hadoop.fs.Path persistedDir)
throws IOException
- Description copied from interface:
PersistedOutputFormatter
- Add result rows from the persisted path.
- Specified by:
addRowsFromPersistedPath
in interface PersistedOutputFormatter
- Parameters:
persistedDir
- the persisted path
- Throws:
IOException
- Signals that an I/O exception has occurred.
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.