public class GazetteerQuery extends Object
QueryBuilder contains convenience methods to make
query construction more readable.| Constructor and Description |
|---|
GazetteerQuery(LocationOccurrence occurrence,
int maxResults,
FuzzyMode fuzzyMode,
AncestryMode ancestryMode,
boolean includeHistorical,
boolean filterDupes,
Set<Integer> parentIds,
Set<FeatureCode> featureCodes)
Create a new GazetteerQuery.
|
| Modifier and Type | Method and Description |
|---|---|
AncestryMode |
getAncestryMode()
Indicates how the ancestry, the hierarchy of political divisions, for matching
locations should be loaded.
|
Set<FeatureCode> |
getFeatureCodes()
Get the set of FeatureCodes that should be used to restrict the search.
|
FuzzyMode |
getFuzzyMode()
Indicates how fuzzy matching should be used.
|
int |
getMaxResults()
Get the maximum number of results that should be returned by this query.
|
LocationOccurrence |
getOccurrence()
Get the LocationOccurrence to search on.
|
Set<Integer> |
getParentIds()
Get the set of parents that should be used to restrict the search.
|
boolean |
isFilterDupes()
Should duplicate results be filtered so only the best match for each
location is returned?
|
boolean |
isIncludeHistorical()
Should historical locations be included in the search results?
|
public GazetteerQuery(LocationOccurrence occurrence, int maxResults, FuzzyMode fuzzyMode, AncestryMode ancestryMode, boolean includeHistorical, boolean filterDupes, Set<Integer> parentIds, Set<FeatureCode> featureCodes)
occurrence - the location occurrencemaxResults - the maximum number of resultsfuzzyMode - the fuzzy mode for this queryancestryMode - the ancestry loading mode for this queryincludeHistorical - true to include historical locationsfilterDupes - true to return only the highest scoring match for each individual locationparentIds - the set of parent IDs to restrict the search to; these will be OR'edfeatureCodes - the set of feature codes to restrict the search to; these will be OR'edpublic LocationOccurrence getOccurrence()
public int getMaxResults()
public FuzzyMode getFuzzyMode()
public AncestryMode getAncestryMode()
public boolean isIncludeHistorical()
true if historical locations should be includedpublic boolean isFilterDupes()
true if duplicates should be filteredpublic Set<Integer> getParentIds()
public Set<FeatureCode> getFeatureCodes()
Copyright © 2012–2016 Berico Technologies. All rights reserved.