|
||||||||||
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
public abstract class WrappedFileFormatter
Wraps the formatter FileFormatter
, which can have implementations like HadoopFileFormatter
or
ZipFileFormatter
.
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 | |
---|---|
WrappedFileFormatter()
|
Method Summary | |
---|---|
void |
close()
Close the formatter. |
void |
commit()
Commit the formatting. |
String |
getEncoding()
|
String |
getFinalOutputPath()
Get final location where formatted output is available |
int |
getNumRows()
Get total number of rows in result. |
org.apache.hadoop.fs.Path |
getTmpPath()
|
void |
init(QueryContext ctx,
LensResultSetMetadata metadata)
Initialize the formatter. |
void |
writeFooter()
Write the footer. |
void |
writeHeader()
Write the header. |
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 |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public WrappedFileFormatter()
Method Detail |
---|
public void init(QueryContext ctx, LensResultSetMetadata metadata) throws IOException
QueryOutputFormatter
init
in interface QueryOutputFormatter
init
in class AbstractOutputFormatter
ctx
- The QueryContext
objectmetadata
- LensResultSetMetadata
object
IOException
- Signals that an I/O exception has occurred.public void writeHeader() throws IOException
QueryOutputFormatter
IOException
- Signals that an I/O exception has occurred.public void writeFooter() throws IOException
QueryOutputFormatter
IOException
- Signals that an I/O exception has occurred.public int getNumRows()
QueryOutputFormatter
public void commit() throws IOException
QueryOutputFormatter
IOException
- Signals that an I/O exception has occurred.public void close() throws IOException
QueryOutputFormatter
IOException
- Signals that an I/O exception has occurred.public String getFinalOutputPath()
QueryOutputFormatter
public org.apache.hadoop.fs.Path getTmpPath()
public String getEncoding()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |