de.hpi.fgis.dude.datasource
Class CSVSource.CSVSourceIterator

java.lang.Object
  extended by de.hpi.fgis.dude.util.AbstractIterator<DuDeObject>
      extended by de.hpi.fgis.dude.datasource.AbstractDataSource.AbstractDataSourceIterator<CSVSource>
          extended by de.hpi.fgis.dude.datasource.CSVSource.CSVSourceIterator
All Implemented Interfaces:
Iterator<DuDeObject>
Enclosing class:
CSVSource

protected class CSVSource.CSVSourceIterator
extends AbstractDataSource.AbstractDataSourceIterator<CSVSource>

CSVSourceIterator is used for generating DuDeObjects out of CSVSources.

Author:
Ziawasch Abedjan, Matthias Pohl

Field Summary
 
Fields inherited from class de.hpi.fgis.dude.datasource.AbstractDataSource.AbstractDataSourceIterator
dataSource
 
Constructor Summary
protected CSVSource.CSVSourceIterator(CSVSource source)
          Initializes a CSVSourceIterator using the passed CSVSource.
 
Method Summary
protected  JsonRecord loadNextRecord()
          Returns the data of the next object.
 
Methods inherited from class de.hpi.fgis.dude.datasource.AbstractDataSource.AbstractDataSourceIterator
addAttributeValue, loadNextElement, setAttributeValue
 
Methods inherited from class de.hpi.fgis.dude.util.AbstractIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVSource.CSVSourceIterator

protected CSVSource.CSVSourceIterator(CSVSource source)
Initializes a CSVSourceIterator using the passed CSVSource.

Parameters:
source - The source of which the data shall be extracted.
Method Detail

loadNextRecord

protected JsonRecord loadNextRecord()
                             throws ExtractionFailedException
Description copied from class: AbstractDataSource.AbstractDataSourceIterator
Returns the data of the next object. This method will be called within AbstractDataSource.AbstractDataSourceIterator.loadNextElement().

Specified by:
loadNextRecord in class AbstractDataSource.AbstractDataSourceIterator<CSVSource>
Returns:
The data record of the next object.
Throws:
ExtractionFailedException - If an error occurs while extracting the data.


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.