@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public class StreamingWorklogDTORetriever extends BaseStreamingRetriever<Long,String,WorklogDTO>
| Constructor and Description |
|---|
StreamingWorklogDTORetriever(QueryDslAccessor qdslAccessor,
DatabaseAccessor dbAccessor) |
| Modifier and Type | Method and Description |
|---|---|
protected List<WorklogDTO> |
getEntitiesBatchByIds(List<Long> idsBatch)
The implementation should return the entities based on provided ids list
|
protected List<Long> |
getEntityIds(String bodySubstring)
The implementation should return all the ids of entities which will be then returned in batches
|
java.util.stream.Stream<List<WorklogDTO>> |
stream(String bodySubstring,
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 StreamingWorklogDTORetriever(QueryDslAccessor qdslAccessor, DatabaseAccessor dbAccessor)
public java.util.stream.Stream<List<WorklogDTO>> stream(String bodySubstring, int batchSize)
BaseStreamingRetrieverstream in class BaseStreamingRetriever<Long,String,WorklogDTO>bodySubstring - 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 bodySubstring)
BaseStreamingRetrievergetEntityIds in class BaseStreamingRetriever<Long,String,WorklogDTO>bodySubstring - the parameter which is used to find the entitiesprotected List<WorklogDTO> getEntitiesBatchByIds(List<Long> idsBatch)
BaseStreamingRetrievergetEntitiesBatchByIds in class BaseStreamingRetriever<Long,String,WorklogDTO>idsBatch - the batch of ids for the entities to be returnedCopyright © 2002-2024 Atlassian. All Rights Reserved.