Package org.codice.ddf.spatial.geocoding
Interface FeatureIndexer
public interface FeatureIndexer
A
FeatureIndexer provides methods for adding SimpleFeature objects to a new or existing local index.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateIndex(String resource, FeatureExtractor featureExtractor, boolean create, FeatureIndexer.IndexCallback indexCallback) Updates a GeoNames index withSimpleFeatureobjects extracted by aGeoEntryExtractor.
-
Method Details
-
updateIndex
void updateIndex(String resource, FeatureExtractor featureExtractor, boolean create, FeatureIndexer.IndexCallback indexCallback) throws FeatureExtractionException, FeatureIndexingException Updates a GeoNames index withSimpleFeatureobjects extracted by aGeoEntryExtractor.- Parameters:
resource- the resource containing GeoNames entriesfeatureExtractor- theFeatureExtractorthat will extractSimpleFeatureobjects fromresourcecreate- true will create a new index and false will add to the existing indexindexCallback- called each time a feature is indexed, receives the running total of features- Throws:
FeatureExtractionException- if an error occurs while extracting features from the resourceFeatureIndexingException- if an error occurs while indexing the new features
-