Class KeyValues
java.lang.Object
com.sparsity.sparksee.gdb.KeyValues
- All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<KeyValue>
Value set class.
This is a set of Value instances, that is there is no duplicated elements.
Use a ValuesIterator to traverse all the elements into the set.
When the Values instance is closed, it closes all existing and non-closed ValuesIterator instances too.
- Author:
- Sparsity Technologies http://www.sparsity-technologies.com
-
Method Details
-
isClosed
public boolean isClosed()Gets if KeyValues instance has been closed or not.- Returns:
- TRUE if the KeyValues instance has been closed, FALSE otherwise.
- See Also:
-
next
-
next
Gets the next KeyValue pair.- Parameters:
kv- Returns the next KeyValue pair
-
hasNext
-
close
public void close()Closes the KeyValues instance.It must be called to ensure the integrity of all data.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-