[hibernate-issues] [JIRA] (HSEARCH-3975) Expose scrolling operations through JPA/ORM queries
Yoann Rodière (JIRA)
jira at hibernate.atlassian.net
Thu Jul 30 12:04:17 EDT 2020
Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *created* an issue
Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiMzgzZTIxYzc3YzVjNGM1MTgxODg5ZDRjNGUzMTEyNDgiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HSEARCH-3975?atlOrigin=eyJpIjoiMzgzZTIxYzc3YzVjNGM1MTgxODg5ZDRjNGUzMTEyNDgiLCJwIjoiaiJ9 ) HSEARCH-3975 ( https://hibernate.atlassian.net/browse/HSEARCH-3975?atlOrigin=eyJpIjoiMzgzZTIxYzc3YzVjNGM1MTgxODg5ZDRjNGUzMTEyNDgiLCJwIjoiaiJ9 ) Expose scrolling operations through JPA/ORM queries ( https://hibernate.atlassian.net/browse/HSEARCH-3975?atlOrigin=eyJpIjoiMzgzZTIxYzc3YzVjNGM1MTgxODg5ZDRjNGUzMTEyNDgiLCJwIjoiaiJ9 )
Issue Type: Task Assignee: Unassigned Components: mapper-orm Created: 30/Jul/2020 09:04 AM Fix Versions: 6.0.0.Beta-backlog Priority: Major Reporter: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )
>
> * Implement scroll() and scroll(ScrollMode) in HibernateOrmSearchQueryAdapter
> , relying on SearchQuery#scroll(int) under the scene. * Only ScrollMode.FORWARD_ONLY
> will be supported.
> * We will need to decide on a page size. Let's use the same size as the
> loading fetch size, which should be accessible from org.hibernate.search.mapper.orm.search.loading.impl.MutableEntityLoadingOptions#getFetchSize
> .
> * Some internal windowing will probably be necessary. Just copy/paste the org.hibernate.search.elasticsearch.util.impl.Window
> class from Search 5 and adapt it. Do not forget to also copy the unit
> test, org.hibernate.search.elasticsearch.test.WindowTest.
> * See org.hibernate.search.query.hibernate.impl.ScrollableResultsImpl for
> an example of how it was done in Search 5 (may or may not be helpful).
>
> * Add tests for scroll() and scroll(ScrollMode) in org.hibernate.search.integrationtest.mapper.orm.hibernateormapis.ToHibernateOrmIT
> : * Nominal case (create scroll, fetch some hits until all hits have been
> consumed, close).
> * Edge cases: not fetching any result (should work fine), fetching some
> results but not all of them (should work fine), trying to fetch more than
> the total hit count (should throw an exception).
> * Error cases: trying to scroll back, trying to call the get*(int) methods...
>
> * Check that using any scroll mode other than ScrollMode.FORWARD_ONLY
> fails.
> * Test query.stream() too (it's based on scroll() ).
>
> * Add tests for getResultStream() in org.hibernate.search.integrationtest.mapper.orm.hibernateormapis.ToJpaIT
> .
>
( https://hibernate.atlassian.net/browse/HSEARCH-3975#add-comment?atlOrigin=eyJpIjoiMzgzZTIxYzc3YzVjNGM1MTgxODg5ZDRjNGUzMTEyNDgiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3975#add-comment?atlOrigin=eyJpIjoiMzgzZTIxYzc3YzVjNGM1MTgxODg5ZDRjNGUzMTEyNDgiLCJwIjoiaiJ9 )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100140- sha1:5beb332 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200730/25b2cd8e/attachment.html
More information about the hibernate-issues
mailing list