edu.umass.cs.mallet.base.pipe.iterator
Interface PipeInputIterator

All Superinterfaces:
java.util.Iterator
All Known Implementing Classes:
AbstractPipeInputIterator

public interface PipeInputIterator
extends java.util.Iterator

Interface for classes that generate instances. Typically, these instances will be unprocessed (e.g., they may come from a corpus data file), and are passed through a pipe as they are added to an InstanceList.

See Also:
Pipe, InstanceList

Method Summary
 Instance nextInstance()
           
 void setParentInstance(Instance parent)
          To be called once before iterator starts.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

setParentInstance

public void setParentInstance(Instance parent)
To be called once before iterator starts. However, Instance object do not currently store this parent information.


nextInstance

public Instance nextInstance()