public interface GeoEntryIndexer
GeoEntryIndexer
provides methods for adding GeoEntry
objects to a new or
existing local index.Modifier and Type | Method and Description |
---|---|
void |
updateIndex(List<GeoEntry> newEntries,
boolean create,
ProgressCallback progressCallback)
|
void |
updateIndex(String resource,
GeoEntryExtractor geoEntryExtractor,
boolean create,
ProgressCallback progressCallback)
Updates a GeoNames index with
GeoEntry objects extracted by a GeoEntryExtractor . |
void updateIndex(List<GeoEntry> newEntries, boolean create, ProgressCallback progressCallback) throws GeoEntryIndexingException
newEntries
- the List
of GeoEntry
objects to add to the indexcreate
- true will create a new index and false will add to the existing indexprogressCallback
- the callback to receive updates about the indexing progress, may be
null if you don't want any updatesGeoEntryIndexingException
- if an error occurs while indexing the new entriesvoid updateIndex(String resource, GeoEntryExtractor geoEntryExtractor, boolean create, ProgressCallback progressCallback) throws GeoEntryIndexingException, GeoEntryExtractionException, GeoNamesRemoteDownloadException
GeoEntry
objects extracted by a GeoEntryExtractor
.resource
- the resource containing GeoNames entriesgeoEntryExtractor
- the GeoEntryExtractor
that will extract GeoEntry
objects from resource
create
- true will create a new index and false will add to the existing indexprogressCallback
- the callback to receive updates about the indexing progress, may be
null if you don't want any updatesGeoEntryExtractionException
- if an error occurs while extracting GeoNames entries from
the resourceGeoEntryIndexingException
- if an error occurs while indexing the new entriesGeoNamesRemoteDownloadException
- if an error occurs while downloading from a remote
sourceThis work is licensed under a Creative Commons Attribution 4.0 International License.