public class FileSerdeFormatter extends WrappedFileFormatter implements InMemoryOutputFormatter
InMemoryOutputFormatter
 
 This is a wrapped formatter, which serializes the rows of the result with configured serde. It would only accept the
 Serde's whose serialization class is TextLOGHEADER_TYPE| Constructor and Description | 
|---|
| FileSerdeFormatter()Instantiates a new file serde formatter. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | init(QueryContext ctx,
    LensResultSetMetadata metadata)Initialize the formatter. | 
| void | writeRow(ResultRow row)Write a row of the result. | 
close, commit, getEncoding, getFinalOutputPath, getNumRows, getTmpPath, writeFooter, writeHeadergetMetadataequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, commit, getFinalOutputPath, getMetadata, getNumRows, writeFooter, writeHeaderpublic FileSerdeFormatter()
public void init(QueryContext ctx, LensResultSetMetadata metadata) throws IOException
QueryOutputFormatterinit in interface QueryOutputFormatterinit in class WrappedFileFormatterctx - The QueryContext objectmetadata - LensResultSetMetadata objectIOException - Signals that an I/O exception has occurred.public void writeRow(ResultRow row) throws IOException
InMemoryOutputFormatterwriteRow in interface InMemoryOutputFormatterrow - ResultRow objectIOException - Signals that an I/O exception has occurred.Copyright © 2014–2015 Apache Software Foundation. All rights reserved.