Class PersistentTuplesEnumerator
java.lang.Object
com.semedy.reasoner.edb.persistentstore.PersistentTuplesEnumerator
- All Implemented Interfaces:
TupleEnumerator,Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentTuplesEnumerator(int arity, long[] grounds, BPlusTree<long[], TupleBuffer> bplustree) -
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
-
Constructor Details
-
PersistentTuplesEnumerator
public PersistentTuplesEnumerator(int arity, long[] grounds, BPlusTree<long[], TupleBuffer> bplustree) throws IOException- Throws:
IOException
-
-
Method Details
-
cloneEnumerator
Description copied from interface:TupleEnumeratorclones the enumerator- Specified by:
cloneEnumeratorin interfaceTupleEnumerator- Throws:
IOException
-
hasMoreElements
public boolean hasMoreElements()Description copied from interface:TupleEnumeratorAre there more elements in enumeration?- Specified by:
hasMoreElementsin interfaceTupleEnumerator
-
nextElement
Description copied from interface:TupleEnumeratorcreates the next element in the buffer- Specified by:
nextElementin interfaceTupleEnumerator- Throws:
IOException
-
getBuffer
Description copied from interface:TupleEnumeratorget a buffer where the elements are inserted- Specified by:
getBufferin interfaceTupleEnumerator- Returns:
-
hasFinished
public boolean hasFinished()Description copied from interface:TupleEnumeratorflag the end of the enumeration- Specified by:
hasFinishedin interfaceTupleEnumerator
-
close
Description copied from interface:TupleEnumeratorclose the enumerator- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceTupleEnumerator- Throws:
IOException
-