Class BatchSearchResult
java.lang.Object
org.hansken.plugin.extraction.api.BatchSearchResult
- All Implemented Interfaces:
SearchResult
A
BatchSearchResult
is a SearchResult
implementation that stores all found traces using a single setTraces call.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the total number of traces matching the query.Returns all found traces.void
setTraces
(SearchTrace[] traces) Sets all traces that can be returned by calling getTraces.
-
Constructor Details
-
BatchSearchResult
public BatchSearchResult(long totalResults)
-
-
Method Details
-
getTraces
Description copied from interface:SearchResult
Returns all found traces.- Specified by:
getTraces
in interfaceSearchResult
- Returns:
- found traces.
-
setTraces
Sets all traces that can be returned by calling getTraces.- Parameters:
traces
- an array of ImmutableTraces.
-
getTotalHits
public long getTotalHits()Description copied from interface:SearchResult
Returns the total number of traces matching the query.- Specified by:
getTotalHits
in interfaceSearchResult
- Returns:
- total number of matching traces
-