Package com.semedy.reasoner.api.edb
Interface TupleEnumerator
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
SelectableIndexEnumerator,SortedIndexEnumerator
- All Known Implementing Classes:
EmptyTuplesEnumerator,EnumeratorOneElement,OneElementTuplesEnumerator,PersistentTuplesEnumerator,SortedEnumeratorOneToOne,SortedIndexEnumeratorOneToOne,TupleEnumeratorCrossProduct,TupleEnumeratorOneToOneJoin,TupleEnumeratorOneToOneJoinRelation
iterator for tuples
-
Method Summary
Modifier and TypeMethodDescriptionclones the enumeratorvoidclose()close the enumeratorget a buffer where the elements are insertedbooleanflag the end of the enumerationbooleanAre there more elements in enumeration?voidcreates the next element in the buffer
-
Method Details
-
hasMoreElements
Are there more elements in enumeration?- Throws:
IOExceptionEDBException
-
nextElement
creates the next element in the buffer- Throws:
IOExceptionEDBException
-
hasFinished
flag the end of the enumeration- Throws:
IOExceptionEDBException
-
getBuffer
TupleBuffer getBuffer()get a buffer where the elements are inserted- Returns:
-
close
close the enumerator- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
cloneEnumerator
clones the enumerator- Throws:
IOExceptionEDBException
-