textractor.database
Class TextractorDBDocumentIterator
java.lang.Object
textractor.mg4j.document.AbstractTextractorDocumentIterator
textractor.database.TextractorDBDocumentIterator
- All Implemented Interfaces:
- DocumentIterator, Closeable
- Direct Known Subclasses:
- AmbiguityDocumentIterator
public class TextractorDBDocumentIterator
- extends AbstractTextractorDocumentIterator
An iterator over documents in the database.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dbm
protected DbManager dbm
chunkSize
protected long chunkSize
lowerBound
protected int lowerBound
iterator
protected Iterator<TextractorDocument> iterator
count
protected int count
TextractorDBDocumentIterator
public TextractorDBDocumentIterator(DbManager dbmanager,
DocumentFactory documentFactory,
int chunkSize,
SentenceFilter sentenceFilter)
nextSentence
protected final Document nextSentence()
throws IOException
- Throws:
IOException
nextSentence
protected final Document nextSentence(TextractorDocument document)
throws IOException
- Throws:
IOException
nextDocument
public Document nextDocument()
throws IOException
- Throws:
IOException
close
public final void close()
throws IOException
- Throws:
IOException
Copyright © 2003-2008 Institute for Computational Biomedicine, All Rights Reserved.