Class StreamingActionDTORetriever
java.lang.Object
com.atlassian.jira.issue.util.streamingretrievers.BaseStreamingRetriever<Long,String,ActionDTO>
com.atlassian.jira.issue.util.streamingretrievers.StreamingActionDTORetriever
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public class StreamingActionDTORetriever
extends BaseStreamingRetriever<Long,String,ActionDTO>
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingActionDTORetriever(QueryDslAccessor qdslAccessor, DatabaseAccessor dbAccessor) -
Method Summary
Modifier and TypeMethodDescriptiongetEntitiesBatchByIds(List<Long> idsBatch) The implementation should return the entities based on provided ids listgetEntityIds(String bodySubstring) The implementation should return all the ids of entities which will be then returned in batchesReturns 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
-
Constructor Details
-
StreamingActionDTORetriever
-
-
Method Details
-
stream
Description copied from class:BaseStreamingRetrieverReturns 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- Overrides:
streamin classBaseStreamingRetriever<Long,String, ActionDTO> - Parameters:
bodySubstring- parameter for the query returning entity ids from the databasebatchSize- size of single entity batch to be returned- Returns:
- stream containing ActionDTO batches sorted by their issue id
- See Also:
-
getEntityIds
Description copied from class:BaseStreamingRetrieverThe implementation should return all the ids of entities which will be then returned in batches- Specified by:
getEntityIdsin classBaseStreamingRetriever<Long,String, ActionDTO> - Parameters:
bodySubstring- the parameter which is used to find the entities
-
getEntitiesBatchByIds
Description copied from class:BaseStreamingRetrieverThe implementation should return the entities based on provided ids list- Specified by:
getEntitiesBatchByIdsin classBaseStreamingRetriever<Long,String, ActionDTO> - Parameters:
idsBatch- the batch of ids for the entities to be returned
-