public interface IndexedBuildResultsSearcher
Modifier and Type | Method and Description |
---|---|
int |
count(org.apache.lucene.search.Query query)
Counts the number of builds that matches the query
|
org.apache.lucene.document.Document |
findBuildResultByNumberAndKey(PlanKey planKey,
int buildNumber)
Find document identified by plan key and build result.
|
<T> List<T> |
findBuildResultDataByJiraIssueKey(Set<String> issueKeys,
com.google.common.base.Function<org.apache.lucene.document.Document,T> transformation)
Find documents relevant to given set of Jira issue keys and apply transformation.
|
ResultsSummary |
findLatestRelevantBuildResult(PlanIdentifier plan,
Long beforeLastCompletedTimestamp)
Find the last finished build of a plan that completed before given time
|
List<ResultsSummary> |
search(Map<String,String[]> params) |
void |
search(org.apache.lucene.search.Query q,
AbstractDocumentHitCollector collector) |
PartialList<ResultsSummary> |
search(org.apache.lucene.search.Query q,
int maxResults)
Returns a list of
ResultsSummary that matches the query up to maxResults |
<T> PartialList<T> |
search(org.apache.lucene.search.Query q,
int maxResults,
com.google.common.base.Function<org.apache.lucene.document.Document,T> documentParser)
Returns a list of T that matches the query up to maxResults.
|
<T> PartialList<T> |
search(org.apache.lucene.search.Query q,
org.apache.lucene.search.SortField sortField,
int maxResults,
com.google.common.base.Function<org.apache.lucene.document.Document,T> documentParser)
Returns a sorted list of T that matches the query up to maxResults.
|
@Nullable ResultsSummary findLatestRelevantBuildResult(@NotNull PlanIdentifier plan, @NotNull Long beforeLastCompletedTimestamp)
plan
- Plan to filter build resultsbeforeLastCompletedTimestamp
- timestamp@NotNull <T> List<T> findBuildResultDataByJiraIssueKey(@NotNull Set<String> issueKeys, @NotNull com.google.common.base.Function<org.apache.lucene.document.Document,T> transformation)
issueKeys
- set of Jira issue keys to narrow down the searchtransformation
- transformation to be applied to found documents@Nullable org.apache.lucene.document.Document findBuildResultByNumberAndKey(@NotNull PlanKey planKey, int buildNumber)
planKey
- Plan keybuildNumber
- build numberList<ResultsSummary> search(Map<String,String[]> params)
@NotNull PartialList<ResultsSummary> search(@NotNull org.apache.lucene.search.Query q, int maxResults)
ResultsSummary
that matches the query up to maxResultsq
- maxResults
- @NotNull <T> PartialList<T> search(@NotNull org.apache.lucene.search.Query q, org.apache.lucene.search.SortField sortField, int maxResults, com.google.common.base.Function<org.apache.lucene.document.Document,T> documentParser)
q
- sortField
- maxResults
- documentParser
- @NotNull <T> PartialList<T> search(@NotNull org.apache.lucene.search.Query q, int maxResults, com.google.common.base.Function<org.apache.lucene.document.Document,T> documentParser)
q
- maxResults
- int count(@NotNull org.apache.lucene.search.Query query)
query
- void search(org.apache.lucene.search.Query q, AbstractDocumentHitCollector collector)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.