The Encog Project

org.encog.neural.data.sql
Class SQLNeuralDataSet.SQLNeuralIterator

java.lang.Object
  extended by org.encog.neural.data.sql.SQLNeuralDataSet.SQLNeuralIterator
All Implemented Interfaces:
java.util.Iterator<NeuralDataPair>
Enclosing class:
SQLNeuralDataSet

public class SQLNeuralDataSet.SQLNeuralIterator
extends java.lang.Object
implements java.util.Iterator<NeuralDataPair>

Iterator used to iterate over SQL results.

Author:
jheaton

Constructor Summary
SQLNeuralDataSet.SQLNeuralIterator()
          Construct an iterator.
 
Method Summary
 void close()
          Close this iterator and release any resources it had.
 boolean hasNext()
          Returns true if there is more data to be read.
 NeuralDataPair next()
          Read the next row from the database.
 void remove()
          Removes are not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLNeuralDataSet.SQLNeuralIterator

public SQLNeuralDataSet.SQLNeuralIterator()
Construct an iterator. Execute a query and retrieve results.

Method Detail

close

public void close()
Close this iterator and release any resources it had.


hasNext

public boolean hasNext()
Returns true if there is more data to be read.

Specified by:
hasNext in interface java.util.Iterator<NeuralDataPair>
Returns:
True if there is more data to be read.

next

public NeuralDataPair next()
Read the next row from the database.

Specified by:
next in interface java.util.Iterator<NeuralDataPair>
Returns:
The next training set pair.

remove

public void remove()
Removes are not supported.

Specified by:
remove in interface java.util.Iterator<NeuralDataPair>

The Encog Project