Interface SearchResult
- All Known Implementing Classes:
BatchSearchResult
public interface SearchResult
A
SearchResult
represents the result of a TraceSearcher.search(String, int)
.
A SearchResult
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 a TraceSearcher.search(String, int)
.-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the total number of traces matching the query.Returns all found traces.
-
Method Details
-
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
-