|
||||||||||
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.FileSerdeFormatter
public class FileSerdeFormatter
File format which provides implementation for InMemoryOutputFormatter
Text
Field Summary |
---|
Fields inherited from class org.apache.lens.lib.query.WrappedFileFormatter |
---|
LOG |
Fields inherited from class org.apache.lens.lib.query.AbstractOutputFormatter |
---|
HEADER_TYPE |
Constructor Summary | |
---|---|
FileSerdeFormatter()
Instantiates a new file serde formatter. |
Method Summary | |
---|---|
void |
init(QueryContext ctx,
LensResultSetMetadata metadata)
Initialize the formatter. |
void |
writeRow(ResultRow row)
Write a row of the result. |
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 |
Constructor Detail |
---|
public FileSerdeFormatter()
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 writeRow(ResultRow row) throws IOException
InMemoryOutputFormatter
writeRow
in interface InMemoryOutputFormatter
row
- ResultRow
object
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 |