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 type
T - 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

    Fields 
    Modifier and Type Field Description
    static char[] CR  
    static char[] CRLF  
    static char[] LF  

    Fields inherited from class teetime.framework.AbstractConsumerStage

    inputPort

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • 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

    Modifier and Type Method Description
    protected void execute​(Table<R,​T> table)  

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • LF

      public static final char[] LF
    • CRLF

      public static final char[] CRLF
    • CR

      public static final char[] CR
  • 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 path
      clazz - row data type
      header - boolean flag specify whether a header line should be written
      newline - 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 suffix
      clazz - row data type
      header - boolean flag specify whether a header line should be written
      newline - 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 type
      header - boolean flag specify whether a header line should be written
      newline - end of line marker
  • Method Details

    • execute

      protected void execute​(Table<R,​T> table) throws java.io.IOException
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<Table<R,​T>>
      Throws:
      java.io.IOException