public interface Appender extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
addTuple(Tuple t)
Write the given tuple.
|
void |
close()
Close the appender.
|
void |
enableStats()
Enable statistics collection for the output table.
|
void |
enableStats(List<Column> columnList)
Enable statistics collection for the output table as well as its columns.
|
void |
flush()
Flush buffered tuples if they exist.
|
long |
getEstimatedOutputSize()
The total size of written output.
|
TableStats |
getStats()
Return collected statistics.
|
void |
init()
Initialize the appender.
|
void init()
throws IOException
IOExceptionvoid addTuple(Tuple t) throws IOException
t - IOExceptionvoid flush()
throws IOException
IOExceptionlong getEstimatedOutputSize()
throws IOException
IOExceptionvoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionvoid enableStats()
void enableStats(List<Column> columnList)
columnList - a list of columns on which statistics is collectedTableStats getStats()
Copyright © 2016 Apache Software Foundation. All Rights Reserved.