Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiMzgzZTIx...
) / Task (
https://hibernate.atlassian.net/browse/HSEARCH-3975?atlOrigin=eyJpIjoiMzg...
) HSEARCH-3975 (
https://hibernate.atlassian.net/browse/HSEARCH-3975?atlOrigin=eyJpIjoiMzg...
) Expose scrolling operations through JPA/ORM queries (
https://hibernate.atlassian.net/browse/HSEARCH-3975?atlOrigin=eyJpIjoiMzg...
)
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%...
)
* 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...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-3975#add-comment?atlOrigin...
)
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....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100140- sha1:5beb332 )