@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)
BaseStreamingRetrieverstream 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 toprotected List<Long> getEntityIds(String descriptionSubstring)
BaseStreamingRetrievergetEntityIds in class BaseStreamingRetriever<Long,String,ProjectDTO>descriptionSubstring - the parameter which is used to find the entitiesprotected List<ProjectDTO> getEntitiesBatchByIds(List<Long> idsBatch)
BaseStreamingRetrievergetEntitiesBatchByIds in class BaseStreamingRetriever<Long,String,ProjectDTO>idsBatch - the batch of ids for the entities to be returnedCopyright © 2002-2024 Atlassian. All Rights Reserved.