View Javadoc
1   package net.sf.flatpack;
2   
3   import java.util.List;
4   import java.util.Optional;
5   
6   /**
7    * Rather than treating a DataSet as a stateful class whereby we need to extract each column one by
8    * one, this interface allows you to extract a record at a time.
9    * @since 3.4
10   */
11  public interface RecordDataSet {
12      /**
13       * Returns true if it has one more record. false if not
14       *
15       * @return boolean
16       */
17      boolean next();
18  
19      Optional<Record> getRecord();
20  
21      /**
22       * Returns A Collection Of DataErrors that happened during processing
23       *
24       * @return Vector
25       */
26      List<DataError> getErrors();
27  
28      /**
29       * Returns total number of records which contained a parse error in the
30       * file.
31       *
32       * @return int - Record Error Count
33       */
34      int getErrorCount();
35  
36  }