René's URL Explorer Experiment


Title: CursorIterator design changes · Issue #154 · lmdbjava/lmdbjava · GitHub

Open Graph Title: CursorIterator design changes · Issue #154 · lmdbjava/lmdbjava

X Title: CursorIterator design changes · Issue #154 · lmdbjava/lmdbjava

Description: As discussed in #153, CursorIterator does not reflect the usual Java iterator idiom where an Iterable is able to produce multiple Iterator instances. This restriction exists because LMDB is used to provide the elements through an underly...

Open Graph Description: As discussed in #153, CursorIterator does not reflect the usual Java iterator idiom where an Iterable is able to produce multiple Iterator instances. This restriction exists because LMDB is used to...

X Description: As discussed in #153, CursorIterator does not reflect the usual Java iterator idiom where an Iterable is able to produce multiple Iterator instances. This restriction exists because LMDB is used to...

Opengraph URL: https://github.com/lmdbjava/lmdbjava/issues/154

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CursorIterator design changes","articleBody":"As discussed in #153, `CursorIterator` does not reflect the usual Java iterator idiom where an `Iterable` is able to produce multiple `Iterator` instances. This restriction exists because LMDB is used to provide the elements through an underlying transaction (provided at the time `Dbi.iterate(..)` is invoked) and cursor. Due to the use of these native resources, it is impractical to effectively produce multiple arbitrary `Iterator`s from the same `Iterable`, especially given each `Iterator` would need to be individually `AutoCloseable` to release its associated LMDB cursor.\r\n\r\nIt is difficult to envisage a practical use case for reusing an `Iterable` in the first place, especially given the shared `Txn` and `KeyRange` would result in the same the data for all returned `Iterator`s anyway. Furthermore users with advanced needs are referred to `Dbi.openCursor(..)`, as this permits moving the cursor in any direction and at any time while the `Txn` remains available.\r\n\r\nWhile #153 added a simple guard to prevent acquiring multiple `Iterator` instances, the overall design remains non-idiomatic. Fundamentally `Dbi.iterate(..)` should return a class that implements `Iterable` so that the returned object can be directly and idiomatically used in an enhanced `for` statement. This would mean:\r\n\r\n* Renaming `CursorIterator` to `CursorIterable`\r\n* Implementing the `Iterable` interface on `CursorIterable`\r\n* Removing the `Iterator` interface from `CursorIterable`\r\n* Relocating the `Iterator` methods into the inner class returned from `CursorIterable.iterator()`\r\n\r\nUnfortunately these changes represent a minor breaking change for existing users. Given this is a breaking change, it's a good opportunity to remove the deprecated `IteratorType` as well. The `IteratorType` was [deprecated](https://github.com/lmdbjava/lmdbjava/blob/895fcbd044247da3164d1ee6dd35a0c7bde3dff7/src/main/java/org/lmdbjava/CursorIterator.java#L211) in LmdbJava 0.6.0 ([released July 2017](https://github.com/lmdbjava/lmdbjava/wiki/Change-Log#060-16-jul-2017)) and represents the only deprecated code currently remaining in LmdbJava.","author":{"url":"https://github.com/bp-alex","@type":"Person","name":"bp-alex"},"datePublished":"2020-04-27T01:50:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/154/lmdbjava/issues/154"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4f325b3d-03bf-aae6-d971-48e6f4759d29
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC586:7A5F:16F8889:1ED8833:69706A67
html-safe-nonce6ab4e12ac471ce3fb2a0917210441d7be6e134eb7d40d25248ffc830e15434cc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTg2OjdBNUY6MTZGODg4OToxRUQ4ODMzOjY5NzA2QTY3IiwidmlzaXRvcl9pZCI6IjU0Njc1ODQ3MzY0MTYyNjI3NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfd648c613b236f7bfdfef5ea5044bb21ddf57562a0f9f17b1d8c3d42e1b22940
hovercard-subject-tagissue:607173645
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lmdbjava/lmdbjava/154/issue_layout
twitter:imagehttps://opengraph.githubassets.com/11f0398d663801d26a053400b48fd5e941d2239d94603d13460b643a63fcb725/lmdbjava/lmdbjava/issues/154
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/11f0398d663801d26a053400b48fd5e941d2239d94603d13460b643a63fcb725/lmdbjava/lmdbjava/issues/154
og:image:altAs discussed in #153, CursorIterator does not reflect the usual Java iterator idiom where an Iterable is able to produce multiple Iterator instances. This restriction exists because LMDB is used to...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebp-alex
hostnamegithub.com
expected-hostnamegithub.com
None9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2
turbo-cache-controlno-preview
go-importgithub.com/lmdbjava/lmdbjava git https://github.com/lmdbjava/lmdbjava.git
octolytics-dimension-user_id19765602
octolytics-dimension-user_loginlmdbjava
octolytics-dimension-repository_id60480511
octolytics-dimension-repository_nwolmdbjava/lmdbjava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id60480511
octolytics-dimension-repository_network_root_nwolmdbjava/lmdbjava
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7d6181066430cc06553c8396ca201e194ae33cb9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lmdbjava/lmdbjava/issues/154#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flmdbjava%2Flmdbjava%2Fissues%2F154
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flmdbjava%2Flmdbjava%2Fissues%2F154
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=lmdbjava%2Flmdbjava
Reloadhttps://github.com/lmdbjava/lmdbjava/issues/154
Reloadhttps://github.com/lmdbjava/lmdbjava/issues/154
Reloadhttps://github.com/lmdbjava/lmdbjava/issues/154
lmdbjava https://github.com/lmdbjava
lmdbjavahttps://github.com/lmdbjava/lmdbjava
Notifications https://github.com/login?return_to=%2Flmdbjava%2Flmdbjava
Fork 124 https://github.com/login?return_to=%2Flmdbjava%2Flmdbjava
Star 866 https://github.com/login?return_to=%2Flmdbjava%2Flmdbjava
Code https://github.com/lmdbjava/lmdbjava
Issues 8 https://github.com/lmdbjava/lmdbjava/issues
Pull requests 1 https://github.com/lmdbjava/lmdbjava/pulls
Actions https://github.com/lmdbjava/lmdbjava/actions
Projects 0 https://github.com/lmdbjava/lmdbjava/projects
Wiki https://github.com/lmdbjava/lmdbjava/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/lmdbjava/lmdbjava/security
Please reload this pagehttps://github.com/lmdbjava/lmdbjava/issues/154
Insights https://github.com/lmdbjava/lmdbjava/pulse
Code https://github.com/lmdbjava/lmdbjava
Issues https://github.com/lmdbjava/lmdbjava/issues
Pull requests https://github.com/lmdbjava/lmdbjava/pulls
Actions https://github.com/lmdbjava/lmdbjava/actions
Projects https://github.com/lmdbjava/lmdbjava/projects
Wiki https://github.com/lmdbjava/lmdbjava/wiki
Security https://github.com/lmdbjava/lmdbjava/security
Insights https://github.com/lmdbjava/lmdbjava/pulse
New issuehttps://github.com/login?return_to=https://github.com/lmdbjava/lmdbjava/issues/154
New issuehttps://github.com/login?return_to=https://github.com/lmdbjava/lmdbjava/issues/154
CursorIterator design changeshttps://github.com/lmdbjava/lmdbjava/issues/154#top
https://github.com/bp-alex
https://github.com/bp-alex
bp-alexhttps://github.com/bp-alex
on Apr 27, 2020https://github.com/lmdbjava/lmdbjava/issues/154#issue-607173645
#153https://github.com/lmdbjava/lmdbjava/issues/153
#153https://github.com/lmdbjava/lmdbjava/issues/153
deprecatedhttps://github.com/lmdbjava/lmdbjava/blob/895fcbd044247da3164d1ee6dd35a0c7bde3dff7/src/main/java/org/lmdbjava/CursorIterator.java#L211
released July 2017https://github.com/lmdbjava/lmdbjava/wiki/Change-Log#060-16-jul-2017
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.