GitHub PushEvent at 2014-12-10 18:38:38
Repository: forestdb
Actor: ns-codereview
Payload: {"shas":[["bf703f6339efd5fcdf2c6a7155a90324a584f7c5","52fd5d4a6dc39f24404c4ccfbc872fa0f3bb41e2@gmail.com","MB-12465: New Iteration APIs & Semantics\n\n1) fdb_iterator_next and fdb_iterator_prev only re-position cursor.\n2) fdb_iterator_get and fdb_iterator_get_metaonly retrieve items\nat the cursor.\n3) fdb_iterator_seek_to_min positions the cursor at the smallest key.\n4) fdb_iterator_seek_to_max() positions the cursor at the largest key.\n5) fdb_iterator_seek() accepts a direction to indicate which key must\nbe selected if the seek key is not present.\n6) Reduced memory usage for the iterator by use of unions where possible.\n7) Simplified TEST_CMP for memcmp to report errors in test cases.\nFor example,\nfdb_doc *rdoc;\nfdb_iterator_init(...);\ndo {\n        status = fdb_iterator_get(iterator, &rdoc);\n            ...\n                fdb_doc_free(rdoc);\n} while (fdb_iterator_next(iterator) != FDB_RESULT_ITERATOR_FAIL);\nstatus = fdb_iterator_seek_to_min(iterator);\nstatus = fdb_iterator_get(iterator, &rdoc);\n...\nfdb_doc_free(rdoc);\n...\nstatus = fdb_iterator_seek(iterator, seek_key, seek_keylen, direction);\nstatus = fdb_iterator_seek_to_max(iterator);\nstatus = fdb_iterator_get(iterator, &rdoc);\n...\nfdb_doc_free(rdoc);\nChange-Id: I3818f39316ecaa8cbc2d5bc37e421efe6cb36101","Sundar Sridharan",true]],"size":1,"ref":"refs/heads/master","head":"bf703f6339efd5fcdf2c6a7155a90324a584f7c5"}