Package org.codice.ddf.spatial.geocoding
Interface GeoEntryIndexer
public interface GeoEntryIndexer
A
GeoEntryIndexer provides methods for adding GeoEntry objects to a new or
existing local index.-
Method Summary
Modifier and TypeMethodDescriptionvoidupdateIndex(String resource, GeoEntryExtractor geoEntryExtractor, boolean create, ProgressCallback progressCallback) Updates a GeoNames index withGeoEntryobjects extracted by aGeoEntryExtractor.voidupdateIndex(List<GeoEntry> newEntries, boolean create, ProgressCallback progressCallback, String entrySource)
-
Method Details
-
updateIndex
void updateIndex(List<GeoEntry> newEntries, boolean create, ProgressCallback progressCallback, String entrySource) throws GeoEntryIndexingException - Parameters:
newEntries- theListofGeoEntryobjects 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 updatesentrySource- the source for the GeoEntry data- Throws:
GeoEntryIndexingException- if an error occurs while indexing the new entries
-
updateIndex
void updateIndex(String resource, GeoEntryExtractor geoEntryExtractor, boolean create, ProgressCallback progressCallback) throws GeoEntryIndexingException, GeoEntryExtractionException, GeoNamesRemoteDownloadException Updates a GeoNames index withGeoEntryobjects extracted by aGeoEntryExtractor.- Parameters:
resource- the resource containing GeoNames entriesgeoEntryExtractor- theGeoEntryExtractorthat will extractGeoEntryobjects fromresourcecreate- 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 updates- Throws:
GeoEntryExtractionException- 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 source
-