Package uk.ac.starlink.table
Class RowCollector<A>
- java.lang.Object
-
- uk.ac.starlink.table.RowCollector<A>
-
- All Implemented Interfaces:
uk.ac.starlink.util.SplitCollector<RowSplittable,A>
public abstract class RowCollector<A> extends java.lang.Object implements uk.ac.starlink.util.SplitCollector<RowSplittable,A>
Convenience implementation ofSplitCollector
for use with table row processing.- Since:
- 5 Aug 2020
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description RowCollector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
accumulate(RowSplittable rseq, A acc)
abstract void
accumulateRows(RowSplittable rseq, A acc)
Processes rows as required.
-
-
-
Method Detail
-
accumulateRows
public abstract void accumulateRows(RowSplittable rseq, A acc) throws java.io.IOException
Processes rows as required. This method is invoked byaccumulate(uk.ac.starlink.table.RowSplittable, A)
, with the necessary IOException handling. Implementations do not need to close the supplied row sequence, which will be taken care of elsewhere.- Parameters:
rseq
- row sequenceacc
- accumulator- Throws:
java.io.IOException
-
accumulate
public final void accumulate(RowSplittable rseq, A acc)
- Specified by:
accumulate
in interfaceuk.ac.starlink.util.SplitCollector<RowSplittable,A>
-
-