public abstract class AbstractOutputFormatter extends Object implements QueryOutputFormatter
Modifier and Type | Field and Description |
---|---|
static String |
HEADER_TYPE
The Constant HEADER_TYPE.
|
Constructor and Description |
---|
AbstractOutputFormatter() |
Modifier and Type | Method and Description |
---|---|
LensResultSetMetadata |
getMetadata()
Get resultset metadata
|
void |
init(QueryContext ctx,
LensResultSetMetadata metadata)
Initialize the formatter.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, commit, getFileSize, getFinalOutputPath, getNumRows, writeFooter, writeHeader
readExternal, writeExternal
public static final String HEADER_TYPE
public void init(QueryContext ctx, LensResultSetMetadata metadata) throws IOException
QueryOutputFormatter
init
in interface QueryOutputFormatter
ctx
- The QueryContext
objectmetadata
- LensResultSetMetadata
objectIOException
- Signals that an I/O exception has occurred.public LensResultSetMetadata getMetadata()
QueryOutputFormatter
getMetadata
in interface QueryOutputFormatter
LensResultSetMetadata
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.