de.hpi.fgis.dude.datasource
Class JSONSource.JSONSourceIterator
java.lang.Object
de.hpi.fgis.dude.util.AbstractIterator<DuDeObject>
de.hpi.fgis.dude.datasource.AbstractDataSource.AbstractDataSourceIterator<JSONSource>
de.hpi.fgis.dude.datasource.JSONSource.JSONSourceIterator
- All Implemented Interfaces:
- Iterator<DuDeObject>
- Enclosing class:
- JSONSource
protected class JSONSource.JSONSourceIterator
- extends AbstractDataSource.AbstractDataSourceIterator<JSONSource>
JSONSourceIterator
is used for generating DuDeObject
s out of JSONSource
s.
- Author:
- Matthias Pohl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONSource.JSONSourceIterator
protected JSONSource.JSONSourceIterator(JSONSource source)
throws org.codehaus.jackson.JsonParseException,
IOException
- Initializes a
JSONSourceIterator
using the passed JSONSource
.
- Parameters:
source
- The source of which the data shall be extracted.
- Throws:
org.codehaus.jackson.JsonParseException
- If the underlying Json syntax is not valid.
IOException
- If an IO error occurred while the iterator was initialized.
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<JSONSource>
- 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.