Class SequenceWriter.Sequence
java.lang.Object
com.northconcepts.datapipeline.core.SequenceWriter.Sequence
- Enclosing class:
SequenceWriter
One segment of a
SequenceWriter's output, with its 0-based index, start time and record counts.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddExceptionProperties(DataException exception, String name) Adds this sequence's index, start time and starting record count to the exception, under names prefixed withname.longThe time this sequence has been running while this sequence is current.intgetIndex()Returns this sequence's 0-based position.Returns the sequence before this one or null if this is the first.longThe number of records written in this sequence while this sequence is current.longReturns the writer's total record count when this sequence started.longReturns when this sequence started, in milliseconds since the epoch.longThe number of records written to all sequences, including the current.toString()
-
Method Details
-
addExceptionProperties
Adds this sequence's index, start time and starting record count to the exception, under names prefixed withname. -
getIndex
public int getIndex()Returns this sequence's 0-based position. -
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
-
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
-