Skip to content

Get ItemReader reading a Stream, particularly RepositoryItemReader [BATCH-2681] #897

Open
@spring-projects-issues

Description

@spring-projects-issues

Philippe opened BATCH-2681 and commented

Today there is no reader component to be configured to read data from a Stream object.

It would be especially usefull that RepositoryItemReader could be configured to read data from a method whose return type is Stream<T> (today we get an exception if you try to do it, it seems to support only Page<T> types).

The reason is that with JPA those method use cursor, if the database support it, and so we can consequently get good performance results when batching treatment.

In the other case, we have to use the HibernateCursorItemReader, which is Hibernate specific because it require a SessionFactory, to read data with cursor.


No further details from BATCH-2681

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions