|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.lib.query.AbstractOutputFormatter org.apache.lens.lib.query.WrappedFileFormatter org.apache.lens.lib.query.FilePersistentFormatter
public class FilePersistentFormatter
File formatter for PersistedOutputFormatter
WrappedFileFormatter
which can wrap any FileFormatter
.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
The Constant LOG. |
Fields inherited from class org.apache.lens.lib.query.AbstractOutputFormatter |
---|
HEADER_TYPE |
Constructor Summary | |
---|---|
FilePersistentFormatter()
|
Method Summary | |
---|---|
void |
addRowsFromPersistedPath(org.apache.hadoop.fs.Path persistedDir)
Add result rows from the persisted path. |
void |
init(QueryContext ctx,
LensResultSetMetadata metadata)
Initialize the formatter. |
Methods inherited from class org.apache.lens.lib.query.WrappedFileFormatter |
---|
close, commit, getEncoding, getFinalOutputPath, getNumRows, getTmpPath, writeFooter, writeHeader |
Methods inherited from class org.apache.lens.lib.query.AbstractOutputFormatter |
---|
getMetadata |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.lens.server.api.query.QueryOutputFormatter |
---|
close, commit, getFinalOutputPath, getMetadata, getNumRows, writeFooter, writeHeader |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public FilePersistentFormatter()
Method Detail |
---|
public void init(QueryContext ctx, LensResultSetMetadata metadata) throws IOException
QueryOutputFormatter
init
in interface QueryOutputFormatter
init
in class WrappedFileFormatter
ctx
- The QueryContext
objectmetadata
- LensResultSetMetadata
object
IOException
- 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 path
IOException
- Signals that an I/O exception has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |