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 Object
implements uk.ac.starlink.util.SplitCollector<RowSplittable,A>
Convenience implementation of
SplitCollector
for use with table row processing.- Since:
- 5 Aug 2020
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaccumulate(RowSplittable rseq, A acc) abstract voidaccumulateRows(RowSplittable rseq, A acc) Processes rows as required.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.ac.starlink.util.SplitCollector
combine, createAccumulator
-
Constructor Details
-
RowCollector
public RowCollector()
-
-
Method Details
-
accumulateRows
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:
IOException
-
accumulate
- Specified by:
accumulatein interfaceuk.ac.starlink.util.SplitCollector<RowSplittable,A>
-