edu.udo.cs.yale.datatable
Class Example2DataTableRowIterator

java.lang.Object
  extended by edu.udo.cs.yale.datatable.Example2DataTableRowIterator
All Implemented Interfaces:
java.util.Iterator<DataTableRow>

public class Example2DataTableRowIterator
extends java.lang.Object
implements java.util.Iterator<DataTableRow>

This iterator iterates over all examples of an example set and creates Example2DataTableRowWrapper objects.

Version:
$Id: Example2DataTableRowIterator.java,v 1.4 2006/09/30 00:05:31 ingomierswa Exp $
Author:
Ingo Mierswa

Field Summary
private  java.util.List<Attribute> allAttributes
           
private  Attribute idAttribute
           
private  java.util.Iterator<Example> reader
           
 
Constructor Summary
Example2DataTableRowIterator(java.util.Iterator<Example> reader, java.util.List<Attribute> allAttributes, Attribute idAttribute)
          Creates a new DataTable iterator backed up by examples.
 
Method Summary
 boolean hasNext()
           
 DataTableRow next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

private java.util.Iterator<Example> reader

allAttributes

private java.util.List<Attribute> allAttributes

idAttribute

private Attribute idAttribute
Constructor Detail

Example2DataTableRowIterator

public Example2DataTableRowIterator(java.util.Iterator<Example> reader,
                                    java.util.List<Attribute> allAttributes,
                                    Attribute idAttribute)
Creates a new DataTable iterator backed up by examples. If the idAttribute is null the DataTableRows will not be able to deliver an Id.

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<DataTableRow>

next

public DataTableRow next()
Specified by:
next in interface java.util.Iterator<DataTableRow>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<DataTableRow>


Copyright © 2001-2006