Class SequenceWriter.Sequence

java.lang.Object
com.northconcepts.datapipeline.core.SequenceWriter.Sequence
Enclosing class:
SequenceWriter

public static class SequenceWriter.Sequence extends Object
One segment of a SequenceWriter's output, with its 0-based index, start time and record counts.
  • Method Details

    • addExceptionProperties

      public void addExceptionProperties(DataException exception, String name)
      Adds this sequence's index, start time and starting record count to the exception, under names prefixed with name.
    • getIndex

      public int getIndex()
      Returns this sequence's 0-based position.
    • getLastSequence

      public SequenceWriter.Sequence getLastSequence()
      Returns the sequence before this one or null if this is the first.
    • getStartTime

      public long getStartTime()
      Returns when this sequence started, in milliseconds since the epoch.
    • getStartingRecordCount

      public long getStartingRecordCount()
      Returns the writer's total record count when this sequence started.
    • getSequenceWriter

      public SequenceWriter getSequenceWriter()
    • getRecordCount

      public long getRecordCount()
      The number of records written in this sequence while this sequence is current.
    • getTotalRecordCount

      public long getTotalRecordCount()
      The number of records written to all sequences, including the current.
    • getElapsedTime

      public long getElapsedTime()
      The time this sequence has been running while this sequence is current.
    • toString

      public String toString()
      Overrides:
      toString in class Object