| Package | Description |
|---|---|
| com.bericotech.clavin.gazetteer | |
| com.bericotech.clavin.gazetteer.query | |
| com.bericotech.clavin.resolver | |
| com.bericotech.clavin.resolver.multipart |
| Modifier and Type | Class and Description |
|---|---|
class |
BasicGeoName
Data-rich representation of a named location, based on entries in
the GeoNames gazetteer.
|
class |
LazyAncestryGeoName
This GeoName can be configured to lazily load its ancestry when its parent
is first requested or to load its ancestry only when explicitly requested
through a Gazetteer.
|
| Modifier and Type | Method and Description |
|---|---|
GeoName |
LazyAncestryGeoName.getParent() |
GeoName |
GeoName.getParent()
Get the parent of this GeoName.
|
GeoName |
BasicGeoName.getParent() |
static GeoName |
BasicGeoName.parseFromGeoNamesRecord(String inputLine)
Builds a
BasicGeoName object based on a single gazetteer
record in the GeoNames geographical database. |
static GeoName |
BasicGeoName.parseFromGeoNamesRecord(String inputLine,
String preferredName)
Builds a
BasicGeoName object based on a single gazetteer
record in the GeoNames geographical database. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
LazyAncestryGeoName.isAncestorOf(GeoName geoname) |
boolean |
GeoName.isAncestorOf(GeoName geoname)
Is this GeoName an ancestor of the provided GeoName?
|
boolean |
BasicGeoName.isAncestorOf(GeoName geoname) |
boolean |
LazyAncestryGeoName.isDescendantOf(GeoName geoname) |
boolean |
GeoName.isDescendantOf(GeoName geoname)
Is this GeoName a descendant of the provided GeoName?
|
boolean |
BasicGeoName.isDescendantOf(GeoName geoname) |
boolean |
LazyAncestryGeoName.setParent(GeoName prnt) |
boolean |
GeoName.setParent(GeoName prnt)
Set the parent of this GeoName.
|
boolean |
BasicGeoName.setParent(GeoName prnt) |
| Constructor and Description |
|---|
LazyAncestryGeoName(GeoName geoName,
Integer parentId)
Creates a LazyAncestryGeoName whose ancestry must be manually loaded.
|
LazyAncestryGeoName(GeoName geoName,
Integer parentId,
Gazetteer gazetteer)
Creates a LazyAncestryGeoName that lazily loads the ancestry of the wrapped
GeoName when its parent is first requested.
|
| Modifier and Type | Method and Description |
|---|---|
GeoName |
LuceneGazetteer.getGeoName(int geonameId) |
GeoName |
Gazetteer.getGeoName(int geonameId)
Retrieves the GeoName with the provided ID, lazily loading its ancestry.
|
GeoName |
LuceneGazetteer.getGeoName(int geonameId,
AncestryMode ancestryMode) |
GeoName |
Gazetteer.getGeoName(int geonameId,
AncestryMode ancestryMode)
Retrieves the GeoName with the provided ID, resolving ancestry according
to the provided method.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LuceneGazetteer.loadAncestry(GeoName... geoNames) |
void |
Gazetteer.loadAncestry(GeoName... geoNames)
Retrieve the full ancestry for the provided GeoNames.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LuceneGazetteer.loadAncestry(Collection<GeoName> geoNames) |
void |
Gazetteer.loadAncestry(Collection<GeoName> geoNames)
Retrieve the full ancestry for the provided GeoNames.
|
| Modifier and Type | Method and Description |
|---|---|
GeoName |
ResolvedLocation.getGeoname()
Get the geographic entity resolved from the location name.
|
| Constructor and Description |
|---|
ResolvedLocation(LocationOccurrence location,
GeoName geoname,
String matchedName,
boolean fuzzy)
Builds a
ResolvedLocation from a document retrieved from
the Lucene index representing the geographic entity resolved
from a location name. |
| Modifier and Type | Method and Description |
|---|---|
static SearchLevel |
SearchLevel.forGeoName(GeoName name) |
String |
SearchLevel.getCode(GeoName geoName) |
Copyright © 2012–2016 Berico Technologies. All rights reserved.