public class BasicResultSetIterator extends java.lang.Object implements SentenceIterator
| Constructor and Description |
|---|
BasicResultSetIterator(java.sql.ResultSet rs,
java.lang.String columnName) |
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Allows for any finishing (closing of input streams or the like)
|
SentencePreProcessor |
getPreProcessor() |
boolean |
hasNext()
Same idea as
Iterator |
java.lang.String |
nextSentence()
Gets the next sentence or null
if there's nothing left (Do yourself a favor and
check hasNext() )
|
void |
reset()
Resets the iterator to the beginning
|
void |
setPreProcessor(SentencePreProcessor preProcessor) |
public BasicResultSetIterator(java.sql.ResultSet rs,
java.lang.String columnName)
public java.lang.String nextSentence()
SentenceIteratornextSentence in interface SentenceIteratorpublic boolean hasNext()
SentenceIteratorIteratorhasNext in interface SentenceIteratorpublic void reset()
SentenceIteratorreset in interface SentenceIteratorpublic void finish()
SentenceIteratorfinish in interface SentenceIteratorpublic SentencePreProcessor getPreProcessor()
getPreProcessor in interface SentenceIteratorpublic void setPreProcessor(SentencePreProcessor preProcessor)
setPreProcessor in interface SentenceIterator