Interface SearchResult
-
- All Known Implementing Classes:
BatchSearchResult
public interface SearchResult
ASearchResult
represents the result of aTraceSearcher.search(String, int)
. ASearchResult
contains found traces and the total number of traces that respond to a given query. This may not be the same number, because the number of traces returned is limited by the count provided in aTraceSearcher.search(String, int)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getTotalHits()
Returns the total number of traces matching the query.Stream<SearchTrace>
getTraces()
Returns all found traces.
-
-
-
Method Detail
-
getTraces
Stream<SearchTrace> getTraces()
Returns all found traces.- Returns:
- found traces.
-
getTotalHits
long getTotalHits()
Returns the total number of traces matching the query.- Returns:
- total number of matching traces
-
-