|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexedBuildResultsSearcher
Method Summary | ||
---|---|---|
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. |
|
|
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 |
|
|
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. |
Method Detail |
---|
@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 number
List<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 maxResults
q
- maxResults
-
@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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |