@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public class StreamingActionDTORetriever extends BaseStreamingRetriever<Long,String,ActionDTO>
| Constructor and Description |
|---|
StreamingActionDTORetriever(QueryDslAccessor qdslAccessor,
DatabaseAccessor dbAccessor) |
| Modifier and Type | Method and Description |
|---|---|
protected List<ActionDTO> |
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<ActionDTO>> |
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 StreamingActionDTORetriever(QueryDslAccessor qdslAccessor, DatabaseAccessor dbAccessor)
public java.util.stream.Stream<List<ActionDTO>> stream(String bodySubstring, int batchSize)
BaseStreamingRetrieverstream in class BaseStreamingRetriever<Long,String,ActionDTO>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,ActionDTO>bodySubstring - the parameter which is used to find the entitiesprotected List<ActionDTO> getEntitiesBatchByIds(List<Long> idsBatch)
BaseStreamingRetrievergetEntitiesBatchByIds in class BaseStreamingRetriever<Long,String,ActionDTO>idsBatch - the batch of ids for the entities to be returnedCopyright © 2002-2024 Atlassian. All Rights Reserved.