public class FileOverwriterOutputWriter extends AbstractOutputWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
FileOverwriterOutputWriter.IoUtils |
| Modifier and Type | Field and Description |
|---|---|
protected File |
file |
static String |
SETTING_FILE_NAME |
static String |
SETTING_FILE_NAME_DEFAULT_VALUE |
protected File |
temporaryFile |
protected Writer |
temporaryFileWriter |
| Constructor and Description |
|---|
FileOverwriterOutputWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected Writer |
getTemporaryFileWriter() |
void |
postCollect()
called after a serie of writes, typically at the end of a collection.
|
void |
postConstruct(Map<String,String> settings) |
protected void |
releaseTemporaryWriter() |
void |
writeInvocationResult(String invocationName,
Object value) |
void |
writeQueryResult(String metricName,
Object value) |
protected void |
writeResult(String name,
Object value) |
preCollect, preDestroypublic static final String SETTING_FILE_NAME
public static final String SETTING_FILE_NAME_DEFAULT_VALUE
protected Writer temporaryFileWriter
protected File temporaryFile
protected File file
public void postConstruct(Map<String,String> settings)
postConstruct in interface OutputWriterpostConstruct in class AbstractOutputWriterprotected Writer getTemporaryFileWriter() throws IOException
IOExceptionpublic void writeQueryResult(String metricName, Object value) throws IOException
writeQueryResult in interface OutputWriterwriteQueryResult in class AbstractOutputWriterIOExceptionpublic void writeInvocationResult(String invocationName, Object value) throws IOException
writeInvocationResult in interface OutputWriterwriteInvocationResult in class AbstractOutputWriterIOExceptionprotected void writeResult(String name, Object value) throws IOException
writeResult in class AbstractOutputWriterIOExceptionprotected void releaseTemporaryWriter()
public void postCollect()
throws IOException
OutputWritercalled after a serie of writes, typically at the end of a collection.
Useful with batch writers.
postCollect in interface OutputWriterpostCollect in class AbstractOutputWriterIOExceptionCopyright © 2013. All Rights Reserved.