Package com.semedy.reasoner.app
Class MultiResultEnumerator
java.lang.Object
com.semedy.reasoner.app.MultiResultEnumerator
- All Implemented Interfaces:
ResultEnumerator
,Closeable
,AutoCloseable
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
MultiResultEnumerator
-
-
Method Details
-
hasMoreElements
Description copied from interface:ResultEnumerator
Are there more elements?- Specified by:
hasMoreElements
in interfaceResultEnumerator
- Returns:
- true if there are more elements
- Throws:
IOException
EDBException
-
nextElement
Description copied from interface:ResultEnumerator
Move to next element (the next element is found in the buffer)- Specified by:
nextElement
in interfaceResultEnumerator
- Throws:
IOException
EDBException
-
hasFinished
Description copied from interface:ResultEnumerator
Is the enumerator at the end?- Specified by:
hasFinished
in interfaceResultEnumerator
- Returns:
- true if there is no more result
- Throws:
IOException
EDBException
-
getBuffer
Description copied from interface:ResultEnumerator
get a result buffer- Specified by:
getBuffer
in interfaceResultEnumerator
- Returns:
- buffer for results
-
close
Description copied from interface:ResultEnumerator
close the iterator- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceResultEnumerator
- Throws:
IOException
-
cloneEnumerator
Description copied from interface:ResultEnumerator
clone the iterator- Specified by:
cloneEnumerator
in interfaceResultEnumerator
- Returns:
- Throws:
IOException
EDBException
-