Reader

From DISMARC Help

(Difference between revisions)
Jump to: navigation, search

Admin (Talk | contribs)
(New page: A reader is part of an Importer The RecordReaders, as they are actually called, transform the native data into an XML. Record Readers are configured via the ImporterConfig which w...)
Next diff →

Revision as of 15:14, 24 July 2008

A reader is part of an Importer

The RecordReaders, as they are actually called, transform the native data into an XML. Record Readers are configured via the ImporterConfig which will set certain settings before you can get an iterator for a passed file. What does that mean? Well, lets say that you have a really long text file where you have to break at each line starting with a BEGIN RECORD. You would need quite a lot of memmory to read the whole file especially when we need to convert it into a different character encoding. That's why you need to tell the RecordRedaer that you need to break at each of the BEGIN RECORD lines, hand it over to the Mapper and continue to read the file as soon as the mapper is done converting the record. This behaviour is called Iterator because we go through each record at a time. The RecordReaders create theses RecordIterators for each file you've uploaded to the application.

So faar, the application can handle the following native data and generate an XML out of it.


Contents

CsvRecordReader

ISO2709RecordReader

XmlRecordReader

SequentialRecordReader

SeparatedSequentialRecordReader

DatabaseRecordReader

Personal tools