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 final char[]
     
    static final char[]
     
    static final char[]
     

    Fields inherited from class teetime.framework.AbstractConsumerStage

    inputPort

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    TableCsvSink(Path filePath, Class<T> clazz, boolean header, char[] newline)
    Create table sink.
    TableCsvSink(Path filePath, String filename, Class<T> clazz, boolean header, char[] newline)
    Create table sink.
    TableCsvSink(Function<String,Path> filePathFunction, 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(Function<String,Path> filePathFunction, 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(Path filePath, String filename, 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(Path filePath, 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