I
- The type of entity ids used by this class descendantsQ
- The type of parameter that is passed to method getting desired entity idsR
- The type of returned entitiespublic abstract class BaseStreamingRetriever<I,Q,R> extends Object
Constructor and Description |
---|
BaseStreamingRetriever() |
Modifier and Type | Method and Description |
---|---|
protected abstract List<R> |
getEntitiesBatchByIds(List<I> idsBatch)
The implementation should return the entities based on provided ids list
|
protected abstract List<I> |
getEntityIds(Q queryParam)
The implementation should return all the ids of entities which will be then returned in batches
|
java.util.stream.Stream<List<R>> |
stream(Q queryParam,
int batchSize)
Returns stream of batches ActionDTOs whose bodies contain specified text
Note that the returned entities are sorted by the id of the issue they belong to
|
public java.util.stream.Stream<List<R>> stream(Q queryParam, int batchSize)
queryParam
- parameter for the query returning entity ids from the databasebatchSize
- size of single entity batch to be returnedprotected abstract List<I> getEntityIds(Q queryParam)
queryParam
- the parameter which is used to find the entitiesCopyright © 2002-2022 Atlassian. All Rights Reserved.