|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unister.semweb.drums.api.DRUMSIterator<Data>
Data
- an implementation of AbstractKVStorable
, e.g. GeneralStorable
public class DRUMSIterator<Data extends AbstractKVStorable>
An instance of this class provides a Read-Only-Iterator for a given DRUMS-table. During iteration, no elements should be inserted by another process.
Constructor Summary | |
---|---|
DRUMSIterator(AbstractHashFunction hashFunction,
DRUMSParameterSet<Data> globalparameters)
Initializes the iterator with the hash function and the global parameters. |
Method Summary | |
---|---|
void |
close()
Closes this iterator. |
boolean |
hasNext()
Returns true if this iterator has one more element, otherwise it returns false . |
Data |
next()
|
void |
remove()
Operation is NOT supported by this iterator. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DRUMSIterator(AbstractHashFunction hashFunction, DRUMSParameterSet<Data> globalparameters)
hashFunction
- globalparameters
- Method Detail |
---|
public boolean hasNext()
true
if this iterator has one more element, otherwise it returns false
. If an
error occurs while accessing the bucket file an IllegalStateException
is thrown.
hasNext
in interface java.util.Iterator<Data extends AbstractKVStorable>
public Data next()
next
in interface java.util.Iterator<Data extends AbstractKVStorable>
public void remove()
remove
in interface java.util.Iterator<Data extends AbstractKVStorable>
public void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |