@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public class StreamingProjectDTORetriever extends BaseStreamingRetriever<Long,String,ProjectDTO>
Constructor and Description |
---|
StreamingProjectDTORetriever(QueryDslAccessor qdslAccessor,
DatabaseAccessor dbAccessor) |
Modifier and Type | Method and Description |
---|---|
protected List<ProjectDTO> |
getEntitiesBatchByIds(List<Long> idsBatch)
The implementation should return the entities based on provided ids list
|
protected List<Long> |
getEntityIds(String descriptionSubstring)
The implementation should return all the ids of entities which will be then returned in batches
|
java.util.stream.Stream<List<ProjectDTO>> |
stream(String descriptionSubstring,
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 StreamingProjectDTORetriever(QueryDslAccessor qdslAccessor, DatabaseAccessor dbAccessor)
public java.util.stream.Stream<List<ProjectDTO>> stream(String descriptionSubstring, int batchSize)
BaseStreamingRetriever
stream
in class BaseStreamingRetriever<Long,String,ProjectDTO>
descriptionSubstring
- parameter for the query returning entity ids from the databasebatchSize
- size of single entity batch to be returnedNote that the returned entities are sorted by the id of the issue they belong to
protected List<Long> getEntityIds(String descriptionSubstring)
BaseStreamingRetriever
getEntityIds
in class BaseStreamingRetriever<Long,String,ProjectDTO>
descriptionSubstring
- the parameter which is used to find the entitiesprotected List<ProjectDTO> getEntitiesBatchByIds(List<Long> idsBatch)
BaseStreamingRetriever
getEntitiesBatchByIds
in class BaseStreamingRetriever<Long,String,ProjectDTO>
idsBatch
- the batch of ids for the entities to be returnedCopyright © 2002-2020 Atlassian. All Rights Reserved.