Package gov.usgs.earthquake.indexer
Class EventsSummaryQuery
- java.lang.Object
-
- gov.usgs.earthquake.indexer.SearchQuery
-
- gov.usgs.earthquake.indexer.EventsSummaryQuery
-
- All Implemented Interfaces:
java.lang.Comparable<SearchQuery>
public class EventsSummaryQuery extends SearchQuery
Search for multiple Events.
-
-
Constructor Summary
Constructors Constructor Description EventsSummaryQuery(ProductIndexQuery query)
Construct an EventsSummaryQuery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SearchQuery that)
java.util.List<EventSummary>
getResult()
Get the result associated with a specific query type.void
setResult(java.util.List<EventSummary> events)
-
Methods inherited from class gov.usgs.earthquake.indexer.SearchQuery
equals, getError, getProductIndexQuery, getSearchQuery, getType, setError
-
-
-
-
Constructor Detail
-
EventsSummaryQuery
public EventsSummaryQuery(ProductIndexQuery query)
Construct an EventsSummaryQuery.- Parameters:
query
- ProductIndexQuery
-
-
Method Detail
-
getResult
public java.util.List<EventSummary> getResult()
Description copied from class:SearchQuery
Get the result associated with a specific query type.- Specified by:
getResult
in classSearchQuery
- Returns:
- the result, or null if the search has not yet executed.
-
setResult
public void setResult(java.util.List<EventSummary> events)
- Parameters:
events
- list of EventSummarys to set as result
-
compareTo
public int compareTo(SearchQuery that)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SearchQuery>
- Overrides:
compareTo
in classSearchQuery
-
-