Package kieker.analysis.generic.sink
Class TableCsvSink<R,T>
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<Table<R,T>>
kieker.analysis.generic.sink.TableCsvSink<R,T>
- Type Parameters:
R
- label typeT
- row type
public class TableCsvSink<R,T> extends teetime.framework.AbstractConsumerStage<Table<R,T>>
Save tables with a specific row type as a csv files based on a path function.
- Since:
- 1.1
- Author:
- Reiner Jung
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TableCsvSink(java.nio.file.Path filePath, java.lang.Class<T> clazz, boolean header, char[] newline)
Create table sink.TableCsvSink(java.nio.file.Path filePath, java.lang.String filename, java.lang.Class<T> clazz, boolean header, char[] newline)
Create table sink.TableCsvSink(java.util.function.Function<java.lang.String,java.nio.file.Path> filePathFunction, java.lang.Class<T> clazz, boolean header, char[] newline)
Create table sink. -
Method Summary
Methods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPort
Methods inherited from class teetime.framework.AbstractStage
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted
-
Field Details
-
Constructor Details
-
TableCsvSink
public TableCsvSink(java.util.function.Function<java.lang.String,java.nio.file.Path> filePathFunction, java.lang.Class<T> clazz, boolean header, char[] newline)Create table sink.- Parameters:
filePathFunction
- function to map string to pathclazz
- row data typeheader
- boolean flag specify whether a header line should be writtennewline
- end of line marker
-
TableCsvSink
public TableCsvSink(java.nio.file.Path filePath, java.lang.String filename, java.lang.Class<T> clazz, boolean header, char[] newline)Create table sink.- Parameters:
filePath
- directory path where the output files are placed in.filename
- filename suffixclazz
- row data typeheader
- boolean flag specify whether a header line should be writtennewline
- end of line marker
-
TableCsvSink
public TableCsvSink(java.nio.file.Path filePath, java.lang.Class<T> clazz, boolean header, char[] newline)Create table sink.- Parameters:
filePath
- directory path where the output files are placed in.clazz
- row data typeheader
- boolean flag specify whether a header line should be writtennewline
- end of line marker
-
-
Method Details