Package gov.usgs.earthquake.indexer
Class ProductDetailQuery
- java.lang.Object
-
- gov.usgs.earthquake.indexer.SearchQuery
-
- gov.usgs.earthquake.indexer.ProductDetailQuery
-
- All Implemented Interfaces:
java.lang.Comparable<SearchQuery>
public class ProductDetailQuery extends SearchQuery
Search for one product.
-
-
Constructor Summary
Constructors Constructor Description ProductDetailQuery(ProductIndexQuery query)
Constructor making a SearchQuery object with PRODUCT_DETAIL as the method
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SearchQuery that)
java.util.List<Product>
getResult()
Get the result associated with a specific query type.void
setResult(java.util.List<Product> product)
-
Methods inherited from class gov.usgs.earthquake.indexer.SearchQuery
equals, getError, getProductIndexQuery, getSearchQuery, getType, setError
-
-
-
-
Constructor Detail
-
ProductDetailQuery
public ProductDetailQuery(ProductIndexQuery query)
Constructor making a SearchQuery object with PRODUCT_DETAIL as the method- Parameters:
query
- a ProductIndexQuery
-
-
Method Detail
-
getResult
public java.util.List<Product> 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<Product> product)
- Parameters:
product
- list to set
-
compareTo
public int compareTo(SearchQuery that)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SearchQuery>
- Overrides:
compareTo
in classSearchQuery
-
-