Class SecondPassSectionSpotsParser
java.lang.Object
net.sf.basedb.util.importer.spotdata.SecondPassSectionSpotsParser
- All Implemented Interfaces:
BaseFileSectionParser
The second pass of the 'spots' section extracts spot and extra value
data.
- Version:
- 2.14
- Author:
- Nicklas
- Last modified
- $Date: 2019-03-20 14:31:03 +0100 (ons, 20 mars 2019) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final BioAssaySet
private final DbControl
private final BaseFileInfo
private final int
private int
private final int
private int
-
Constructor Summary
ConstructorDescriptionSecondPassSectionSpotsParser
(DbControl dc, BaseFileInfo info, BioAssaySet child, int linesToParse) Creates a new 'section spot' parser for the first pass. -
Method Summary
Modifier and TypeMethodDescriptionvoid
parseSection
(BaseFileParser parser, FlatFileParser ffp) Parse the current section.
-
Field Details
-
dc
-
info
-
child
-
linesToParse
private final int linesToParse -
progressReportInterval
private final int progressReportInterval -
nextProgressReport
private int nextProgressReport -
channels
private final int channels -
sectionCount
private int sectionCount
-
-
Constructor Details
-
SecondPassSectionSpotsParser
public SecondPassSectionSpotsParser(DbControl dc, BaseFileInfo info, BioAssaySet child, int linesToParse) Creates a new 'section spot' parser for the first pass. This parser will only extract header and reporter/position mapping information.- Parameters:
dc
- A DbControl to use for database accessinfo
- Information about the file we are parsingchild
- The new child bioassay set that we are importing data to
-
-
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
-