anl.aida.core
Class DocumentIterable

java.lang.Object
  extended by anl.aida.core.DocumentIterable
All Implemented Interfaces:
java.lang.Iterable<MIFSDocument>

public class DocumentIterable
extends java.lang.Object
implements java.lang.Iterable<MIFSDocument>

An iterable over an STC subsetted by a list of document ids.


Nested Class Summary
private  class DocumentIterable.Iter
           
 
Field Summary
private  java.util.List<DocumentID> docs
           
private  ScoredTermsCollection stc
           
 
Constructor Summary
DocumentIterable(ScoredTermsCollection stc, java.util.List<DocumentID> docs)
           
 
Method Summary
 java.util.Iterator<MIFSDocument> iterator()
          Returns an iterator over a set of elements of type T.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stc

private ScoredTermsCollection stc

docs

private java.util.List<DocumentID> docs
Constructor Detail

DocumentIterable

public DocumentIterable(ScoredTermsCollection stc,
                        java.util.List<DocumentID> docs)
Method Detail

iterator

public java.util.Iterator<MIFSDocument> iterator()
Returns an iterator over a set of elements of type T.

Specified by:
iterator in interface java.lang.Iterable<MIFSDocument>
Returns:
an Iterator.