Class SectionReporterListParser
java.lang.Object
net.sf.basedb.util.importer.spotdata.SectionReporterListParser
- All Implemented Interfaces:
BaseFileSectionParser
public class SectionReporterListParser extends Object implements BaseFileSectionParser
Parses the 'reporterlist' section of a BASEfile. This section
is optional. If it exists it must 'reporterId' and 'score'
data columns in the 'columns' header. The name of the new reporter
list can be set by the 'name' header. If this doesn't exists a
name is genarated automatically.
NOTE! The column names can be redefined by calling
BaseFileParser.setRedefinedColumnName(String, String, String)
- Version:
- 2.14
- Author:
- Nicklas
- Last modified
- $Date: 2019-03-20 14:31:03 +0100 (ons, 20 mars 2019) $
-
Field Summary
Fields Modifier and Type Field Description private DbControl
dc
private BaseFileInfo
info
private long
nextProgressReport
private long
progressReportInterval
private int
sectionCount
private String
totalBytes
private Transformation
transformation
-
Constructor Summary
Constructors Constructor Description SectionReporterListParser(DbControl dc, BaseFileInfo info, Transformation transformation)
-
Method Summary
Modifier and Type Method Description void
parseSection(BaseFileParser parser, FlatFileParser ffp)
Parse the current section.
-
Field Details
-
dc
-
info
-
transformation
-
sectionCount
private int sectionCount -
totalBytes
-
progressReportInterval
private final long progressReportInterval -
nextProgressReport
private long nextProgressReport
-
-
Constructor Details
-
SectionReporterListParser
-
-
Method Details
-
parseSection
Description copied from interface:BaseFileSectionParser
Parse the current section. The current parse position is right after the section marker. If the section contains headers theFlatFileParser.parseHeaders()
must be called. UseFlatFileParser.nextData()
to parse data lines.- Specified by:
parseSection
in interfaceBaseFileSectionParser
- Parameters:
parser
- The master BASEfile parser (can be used for reporting progress, checking for interrupts, etc.)ffp
- The actual file parser, use this to get the data- Throws:
IOException
- If there is a problem reading the data
-