Class CsvTableReaderStage<R,​T>

java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<I>
teetime.stage.basic.AbstractTransformation<java.nio.file.Path,​Table<R,​T>>
kieker.analysis.generic.CsvTableReaderStage<R,​T>
Type Parameters:
R - label data type
T - record data type
All Implemented Interfaces:
teetime.stage.basic.ITransformation<java.nio.file.Path,​Table<R,​T>>

public class CsvTableReaderStage<R,​T>
extends teetime.stage.basic.AbstractTransformation<java.nio.file.Path,​Table<R,​T>>
Reader for multiple CSV files. Output them as tables.
Since:
1.0
Author:
Reiner Jung
  • Field Summary

    Fields inherited from class teetime.stage.basic.AbstractTransformation

    outputPort

    Fields inherited from class teetime.framework.AbstractConsumerStage

    inputPort

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • Constructor Summary

    Constructors 
    Constructor Description
    CsvTableReaderStage​(char separator, char quoteSymbol, char escapeSymbol, boolean header, java.lang.Class<T> clazz, IPathLabelMapper<R> mapper)
    Read a single CSV file.
  • Method Summary

    Modifier and Type Method Description
    protected void execute​(java.nio.file.Path path)  

    Methods inherited from class teetime.stage.basic.AbstractTransformation

    getOutputPort

    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

    Methods inherited from interface teetime.stage.basic.ITransformation

    getInputPort
  • Constructor Details

    • CsvTableReaderStage

      public CsvTableReaderStage​(char separator, char quoteSymbol, char escapeSymbol, boolean header, java.lang.Class<T> clazz, IPathLabelMapper<R> mapper)
      Read a single CSV file.
      Parameters:
      separator - string containing the separator symbol for cells
      quoteSymbol - quote symbol used for cells
      escapeSymbol - escape character
      header - indicate how to interpret the first line in the CSV file, set to true to indicate that the first line contains the header information
      clazz - bean class
      mapper - path to label mapper
      Throws:
      java.io.IOException - when a stream could not be opened.
  • Method Details

    • execute

      protected void execute​(java.nio.file.Path path) throws java.lang.Exception
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<java.nio.file.Path>
      Throws:
      java.lang.Exception