public interface SearchDAO
| Modifier and Type | Method and Description |
|---|---|
TaxaRankCountDTO |
calculateBreakdown(BreakdownRequestParams queryParams)
Calculate taxon breakdown.
|
List<TaxaCountDTO> |
findAllSpecies(SpatialSearchRequestParams requestParams)
Find all species (and counts) for a given query.
|
List<TaxaCountDTO> |
findAllSpeciesByCircleAreaAndHigherTaxa(SpatialSearchRequestParams requestParams,
String speciesGroup)
Find all species (and counts) for a given location search (lat/long and radius) and a higher taxon (with rank)
|
org.apache.solr.common.SolrDocumentList |
findByFulltext(SpatialSearchRequestParams searchParams)
Find all occurrences for a given query as SolrDocumentList
|
SearchResultDTO |
findByFulltextSpatialQuery(SpatialSearchRequestParams requestParams,
boolean includeSensitive,
Map<String,String[]> extraParams)
Find all occurrences for a given (full text) query, latitude, longitude & radius (km).
|
SearchResultDTO |
findByFulltextSpatialQuery(SpatialSearchRequestParams requestParams,
Map<String,String[]> extraParams)
Find all occurrences for a given (full text) query, latitude, longitude & radius (km).
|
List<FieldResultDTO> |
findRecordByStateFor(String query) |
List<OccurrencePoint> |
findRecordsForLocation(SpatialSearchRequestParams requestParams,
PointType pointType)
Get a list of occurrence points for a given lat/long and distance (radius)
|
TaxaRankCountDTO |
findTaxonCountForUid(BreakdownRequestParams breakdownParams,
String query)
Returns the scientific name and counts for the taxon rank that proceed or include the supplied rank.
|
List<DataProviderCountDTO> |
getDataProviderCounts()
Find all the data providers with records.
|
List<DataProviderCountDTO> |
getDataProviderList(SpatialSearchRequestParams requestParams)
Get a data provider list for a query.
|
List<FieldResultDTO> |
getEndemicSpecies(SpatialSearchRequestParams requestParams)
Finds the endemic species of the supplied area.
|
List<FacetResultDTO> |
getFacetCounts(SpatialSearchRequestParams searchParams)
Retrieve facet counts for this query
|
List<OccurrencePoint> |
getFacetPoints(SpatialSearchRequestParams searchParams,
PointType pointType)
Retrieve an OccurrencePoint (distinct list of points - lat-long to 4 decimal places) for a given search
|
Set<IndexFieldDTO> |
getIndexedFields()
Retrieve a list of the indexed fields.
|
Set<IndexFieldDTO> |
getIndexFieldDetails(String... field)
Returns the up to date statistics for the supplied field
|
List<LegendItem> |
getLegend(SpatialSearchRequestParams searchParams,
String facet,
String[] cutpoints)
Get legend items for a query and specified facet.
|
Map<String,Integer> |
getOccurrenceCountsForTaxa(List<String> taxa)
Returns the occurrence counts based on lft and rgt values for each of the supplied taxa.
|
List<OccurrencePoint> |
getOccurrences(SpatialSearchRequestParams requestParams,
PointType pointType,
String colourBy,
int searchType)
Retrieve a list of occurrence uid's for a given search
|
Map<String,Integer> |
getSourcesForQuery(SpatialSearchRequestParams searchParams)
Find all the sources for the supplied query
|
Map<String,org.apache.solr.client.solrj.response.FieldStatsInfo> |
getStatistics(SpatialSearchRequestParams searchParams)
Statistics for each of the fields included as facets.
|
List<FieldResultDTO> |
getValuesForFacet(SpatialSearchRequestParams requestParams)
Retrieve a list of facet values for the supplied query.
|
void |
refreshCaches()
Refresh any caches in use to populate queries.
|
void |
writeCoordinatesToStream(SearchRequestParams searchParams,
OutputStream out)
Write coordinates out to the supplied stream.
|
void |
writeFacetToStream(SpatialSearchRequestParams searchParams,
boolean includeCount,
boolean lookupName,
boolean includeSynonyms,
OutputStream out,
DownloadDetailsDTO dd)
Write facet content to supplied output stream
|
Map<String,Integer> |
writeResultsFromIndexToStream(DownloadRequestParams downloadParams,
OutputStream out,
boolean includeSensitive,
DownloadDetailsDTO dd,
boolean checkLimit)
Writes the results of this query to the output stream using the index as a source of the data.
|
Map<String,Integer> |
writeResultsToStream(DownloadRequestParams searchParams,
OutputStream out,
int maxNoOfRecords,
boolean includeSensitive,
DownloadDetailsDTO dd)
Write out the results of this query to the output stream
|
int |
writeSpeciesCountByCircleToStream(SpatialSearchRequestParams requestParams,
String speciesGroup,
javax.servlet.ServletOutputStream out)
Writes the species count in the specified circle to the output stream.
|
List<FieldResultDTO> getEndemicSpecies(SpatialSearchRequestParams requestParams) throws Exception
requestParams - ExceptionList<FieldResultDTO> getValuesForFacet(SpatialSearchRequestParams requestParams) throws Exception
requestParams - ExceptionSearchResultDTO findByFulltextSpatialQuery(SpatialSearchRequestParams requestParams, Map<String,String[]> extraParams)
requestParams - ExceptionSearchResultDTO findByFulltextSpatialQuery(SpatialSearchRequestParams requestParams, boolean includeSensitive, Map<String,String[]> extraParams)
requestParams - Exceptionint writeSpeciesCountByCircleToStream(SpatialSearchRequestParams requestParams, String speciesGroup, javax.servlet.ServletOutputStream out) throws Exception
requestParams - speciesGroup - out - ExceptionMap<String,Integer> writeResultsToStream(DownloadRequestParams searchParams, OutputStream out, int maxNoOfRecords, boolean includeSensitive, DownloadDetailsDTO dd) throws Exception
searchParams - out - maxNoOfRecords - includeSensitive - Whether or not the sensitive values should be included in the downloadExceptionMap<String,Integer> writeResultsFromIndexToStream(DownloadRequestParams downloadParams, OutputStream out, boolean includeSensitive, DownloadDetailsDTO dd, boolean checkLimit) throws Exception
downloadParams - out - includeSensitive - Exceptionvoid writeCoordinatesToStream(SearchRequestParams searchParams, OutputStream out) throws Exception
searchParams - out - Exceptionvoid writeFacetToStream(SpatialSearchRequestParams searchParams, boolean includeCount, boolean lookupName, boolean includeSynonyms, OutputStream out, DownloadDetailsDTO dd) throws Exception
searchParams - includeCount - lookupName - includeSynonyms - out - dd - ExceptionSet<IndexFieldDTO> getIndexedFields() throws Exception
ExceptionSet<IndexFieldDTO> getIndexFieldDetails(String... field) throws Exception
field - ExceptionList<OccurrencePoint> getFacetPoints(SpatialSearchRequestParams searchParams, PointType pointType) throws Exception
searchParams - pointType - ExceptionList<OccurrencePoint> getOccurrences(SpatialSearchRequestParams requestParams, PointType pointType, String colourBy, int searchType) throws Exception
requestParams - pointType - colourBy - searchType - ExceptionList<OccurrencePoint> findRecordsForLocation(SpatialSearchRequestParams requestParams, PointType pointType) throws Exception
requestParams - pointType - Exceptionvoid refreshCaches()
List<TaxaCountDTO> findAllSpeciesByCircleAreaAndHigherTaxa(SpatialSearchRequestParams requestParams, String speciesGroup) throws Exception
requestParams - speciesGroup - ExceptionList<DataProviderCountDTO> getDataProviderCounts() throws Exception
ExceptionList<FieldResultDTO> findRecordByStateFor(String query) throws Exception
ExceptionMap<String,Integer> getSourcesForQuery(SpatialSearchRequestParams searchParams) throws Exception
searchParams - ExceptionTaxaRankCountDTO calculateBreakdown(BreakdownRequestParams queryParams) throws Exception
queryParams - ExceptionMap<String,Integer> getOccurrenceCountsForTaxa(List<String> taxa) throws Exception
taxa - ExceptionTaxaRankCountDTO findTaxonCountForUid(BreakdownRequestParams breakdownParams, String query) throws Exception
breakdownParams - query - ExceptionList<TaxaCountDTO> findAllSpecies(SpatialSearchRequestParams requestParams) throws Exception
requestParams - Exceptionorg.apache.solr.common.SolrDocumentList findByFulltext(SpatialSearchRequestParams searchParams) throws Exception
searchParams - ExceptionMap<String,org.apache.solr.client.solrj.response.FieldStatsInfo> getStatistics(SpatialSearchRequestParams searchParams) throws Exception
searchParams - ExceptionList<LegendItem> getLegend(SpatialSearchRequestParams searchParams, String facet, String[] cutpoints) throws Exception
searchParams - facet - ExceptionList<DataProviderCountDTO> getDataProviderList(SpatialSearchRequestParams requestParams) throws Exception
requestParams - ExceptionList<FacetResultDTO> getFacetCounts(SpatialSearchRequestParams searchParams) throws Exception
searchParams - ExceptionCopyright © 2014. All rights reserved.