com.rapidminer.example.table
Class ResultSetDataRowReader

java.lang.Object
  extended by com.rapidminer.example.table.AbstractDataRowReader
      extended by com.rapidminer.example.table.ResultSetDataRowReader
All Implemented Interfaces:
DataRowReader, java.util.Iterator<DataRow>

public class ResultSetDataRowReader
extends AbstractDataRowReader

Unlike a FileDataRowReader that reads examples from a file, objects of this class read examples from a ResultSet, a data structure that is returned from a database query.

Author:
Simon Fischer, Ingo Mierswa ingomierswa Exp $
See Also:
DatabaseHandler, DatabaseDataReader, KDBExampleSource

Constructor Summary
ResultSetDataRowReader(DataRowFactory dataRowFactory, java.util.List<Attribute> attributeList, java.sql.ResultSet resultSet)
          Constructor.
 
Method Summary
 boolean hasNext()
           
 DataRow next()
           
 
Methods inherited from class com.rapidminer.example.table.AbstractDataRowReader
getFactory, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetDataRowReader

public ResultSetDataRowReader(DataRowFactory dataRowFactory,
                              java.util.List<Attribute> attributeList,
                              java.sql.ResultSet resultSet)
Constructor.

Parameters:
attributeList - List of attributes
resultSet - A ResultSet as returned from a database query
Method Detail

hasNext

public boolean hasNext()

next

public DataRow next()


Copyright © 2001-2009 by Rapid-I