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 iteratorvoidclose()close the iteratorget a result bufferbooleanIs the enumerator at the end?booleanAre there more elements?voidMove 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:
IOExceptionEDBException
-
nextElement
Move to next element (the next element is found in the buffer)- Throws:
IOExceptionEDBException
-
hasFinished
Is the enumerator at the end?- Returns:
- true if there is no more result
- Throws:
IOExceptionEDBException
-
getBuffer
ResultBuffer getBuffer()get a result buffer- Returns:
- buffer for results
-
close
close the iterator- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
cloneEnumerator
clone the iterator- Returns:
- Throws:
IOExceptionEDBException
-