public class UimaResultSetIterator extends BasicResultSetIterator
Constructor and Description |
---|
UimaResultSetIterator(ResultSet rs,
String columnName)
Constructor which builds a new UimaResource object
|
UimaResultSetIterator(ResultSet rs,
String columnName,
UimaResource resource)
Constructor which takes an existing UimaResource object
|
Modifier and Type | Method and Description |
---|---|
void |
finish()
Allows for any finishing (closing of input streams or the like)
|
boolean |
hasNext()
Same idea as
Iterator |
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
|
getPreProcessor, setPreProcessor
public UimaResultSetIterator(ResultSet rs, String columnName) throws org.apache.uima.resource.ResourceInitializationException
rs
- the database result set object to iterate overcolumnName
- the name of the column containing textorg.apache.uima.resource.ResourceInitializationException
public UimaResultSetIterator(ResultSet rs, String columnName, UimaResource resource)
rs
- the database result set object to iterate overcolumnName
- the name of the column containing textresource
- public String nextSentence()
SentenceIterator
nextSentence
in interface SentenceIterator
nextSentence
in class BasicResultSetIterator
public boolean hasNext()
SentenceIterator
Iterator
hasNext
in interface SentenceIterator
hasNext
in class BasicResultSetIterator
public void reset()
SentenceIterator
reset
in interface SentenceIterator
reset
in class BasicResultSetIterator
public void finish()
SentenceIterator
finish
in interface SentenceIterator
finish
in class BasicResultSetIterator
Copyright © 2020. All rights reserved.