Package com.semedy.reasoner.core
Class ResultEnumeratorNotThreaded
java.lang.Object
com.semedy.reasoner.core.ResultEnumeratorNotThreaded
- All Implemented Interfaces:
ResultEnumerator
,Closeable
,AutoCloseable
,Cloneable
public class ResultEnumeratorNotThreaded
extends Object
implements Closeable, Cloneable, ResultEnumerator
enumerator for reasoning results
- Author:
- juergen
-
Constructor Summary
ConstructorDescriptionResultEnumeratorNotThreaded
(List<TupleEnumerator> enms, int arity, SymbolTable symbols, List<String> variables) -
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
-
ResultEnumeratorNotThreaded
public ResultEnumeratorNotThreaded(List<TupleEnumerator> enms, int arity, SymbolTable symbols, List<String> variables)
-
-
Method Details
-
hasMoreElements
Are there more elements?- Specified by:
hasMoreElements
in interfaceResultEnumerator
- Returns:
- true if there are more elements
- Throws:
IOException
EDBException
-
nextElement
Move to next element (the next element is found in the buffer)- Specified by:
nextElement
in interfaceResultEnumerator
- Throws:
IOException
EDBException
-
hasFinished
Is the enumerator at the end?- Specified by:
hasFinished
in interfaceResultEnumerator
- Returns:
- true if there is no more result
- Throws:
IOException
EDBException
-
getBuffer
get a result buffer- Specified by:
getBuffer
in interfaceResultEnumerator
- Returns:
- buffer for results
-
close
close the iterator- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceResultEnumerator
- Throws:
IOException
-
cloneEnumerator
clone the iterator- Specified by:
cloneEnumerator
in interfaceResultEnumerator
- Returns:
- Throws:
IOException
EDBException
-