Package com.semedy.reasoner.edb.ramstore
Class EmptyTuplesEnumerator
java.lang.Object
com.semedy.reasoner.edb.ramstore.EmptyTuplesEnumerator
- All Implemented Interfaces:
TupleEnumerator
,Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclones the enumeratorvoid
close()
close the enumeratorget a buffer where the elements are insertedboolean
flag the end of the enumerationboolean
Are there more elements in enumeration?void
creates the next element in the buffer
-
Constructor Details
-
EmptyTuplesEnumerator
public EmptyTuplesEnumerator(int size) -
EmptyTuplesEnumerator
public EmptyTuplesEnumerator()
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()Description copied from interface:TupleEnumerator
Are there more elements in enumeration?- Specified by:
hasMoreElements
in interfaceTupleEnumerator
-
nextElement
public void nextElement()Description copied from interface:TupleEnumerator
creates the next element in the buffer- Specified by:
nextElement
in interfaceTupleEnumerator
-
hasFinished
public boolean hasFinished()Description copied from interface:TupleEnumerator
flag the end of the enumeration- Specified by:
hasFinished
in interfaceTupleEnumerator
-
getBuffer
Description copied from interface:TupleEnumerator
get a buffer where the elements are inserted- Specified by:
getBuffer
in interfaceTupleEnumerator
- Returns:
-
close
Description copied from interface:TupleEnumerator
close the enumerator- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceTupleEnumerator
- Throws:
IOException
-
cloneEnumerator
Description copied from interface:TupleEnumerator
clones the enumerator- Specified by:
cloneEnumerator
in interfaceTupleEnumerator
- Throws:
IOException
-