gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit4b59c03d4b59c03dHM50 mission: doc pathmre4b59c03d/plugins/mpackdb/cursor.hl

594 B

  1. \* A lazy result cursor: each next() decodes ONE record. Handed out by
  2. MPackDB.cursor(); never `new`ed by app code. *\
  3. Hybrid #iter
  4. \* Next record, or null when exhausted. *\
  5. next() {
  6. return #iter.next()
  7. }
  8. \* Release what the cursor holds now (its snapshot). A `for` loop over a Cursor that is left by
  9. break/return calls this once (mission 418); calling it again, or after the end, is harmless. *\
  10. close() {
  11. if (#iter != null) { #iter.close() }
  12. }
  13. \* Remaining records as a Hybrid (consumes the cursor). *\
  14. all() {
  15. let out = []
  16. for (rec of #iter) {
  17. out.push(rec)
  18. }
  19. return out
  20. }

Branches

Latest commits

  • 4b59c03dHM50 mission: doc pathmre
  • ed526d67HM50 missionmre
  • 2f986ca3Log: RT50 passmre
  • 1c4715a4RT50 mission: day50 repro retestmre
  • 57d1c0dcLog: day50 retest requestmre
  • 60b1f419Log: Anton #336 result, wake checkmre
  • 919a18aalog: scratchmre
  • 6b504440status tidymre
  • 9332bd10log: DP70 livemre
  • be11daa0DP70 brief fixmre
  • 886a7028DP70 brief, HM67 mergedmre
  • b41cdd6dMerge hm67-searchids: packed search IDsmre
  • 385904eaReport HM67 matched heap measurements and gate proofmre
  • e5c9b659Pack retained search IDs into UTF-8 bytesmre
  • 62a5f6c7HM67 brief, HM66 mergedmre
  • b32b8440Merge hm66-catalogindex: packed catalog indexmre
  • 2db0f7adReport HM66 heap measurements and validationmre
  • 6ce15623Pack catalog lists and membership maps in UTF-8 bytesmre
  • 71134e21HM66 briefmre
  • ed4cbab2status timemre