This commit is contained in:
Ankit Gupta
2014-04-19 13:21:06 -07:00
parent 06b590dd7c
commit 1574e0c41a
5 changed files with 30 additions and 22 deletions

View File

@@ -140,9 +140,11 @@ public class RocksDB {
* Return a heap-allocated iterator over the contents of the database.
* The result of newIterator() is initially invalid (caller must
* call one of the Seek methods on the iterator before using it).
*
*
* Caller should close the iterator when it is no longer needed.
* The returned iterator should be closed before this db is closed.
*
* @return instance of iterator object.
*/
public Iterator newIterator() {
return new Iterator(iterator0(nativeHandle_));