Package com.semedy.reasoner.api.core
Interface ResultEnumerator
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
MultiResultEnumerator
,ResultEnumeratorNotThreaded
,ResultEnumeratorThreaded
- Author:
- angele
-
Method Summary
Modifier and TypeMethodDescriptionclone the iteratorvoid
close()
close the iteratorget a result bufferboolean
Is the enumerator at the end?boolean
Are there more elements?void
Move to next element (the next element is found in the buffer)
-
Method Details
-
hasMoreElements
Are there more elements?- Returns:
- true if there are more elements
- Throws:
IOException
EDBException
-
nextElement
Move to next element (the next element is found in the buffer)- Throws:
IOException
EDBException
-
hasFinished
Is the enumerator at the end?- Returns:
- true if there is no more result
- Throws:
IOException
EDBException
-
getBuffer
ResultBuffer getBuffer()get a result buffer- Returns:
- buffer for results
-
close
close the iterator- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
cloneEnumerator
clone the iterator- Returns:
- Throws:
IOException
EDBException
-