Package org.geotools.vectormosaic
Class GranuleStoreFinder
- Object
-
- GranuleStoreFinder
-
- Direct Known Subclasses:
GranuleStoreFinderImpl
public abstract class GranuleStoreFinder extends Object
Utility class to find a DataStoreFactorySpi for a given set of connection parameters.
-
-
Field Summary
Fields Modifier and Type Field Description protected GranuleTrackergranuleTracker
-
Constructor Summary
Constructors Constructor Description GranuleStoreFinder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Optional<DataStore>findDataStore(VectorMosaicGranule granule, boolean isSampleForSchema)Find the DataStore for the given connection parameters.protected DataStoreFactorySpigetSPI(String preferredSPI)Returns the data store factory SPI for the given nameprotected MappropertiesToMap(Properties connProps)Converts properties to a Map of key/value pairs
-
-
-
Field Detail
-
granuleTracker
protected GranuleTracker granuleTracker
-
-
Method Detail
-
findDataStore
public abstract Optional<DataStore> findDataStore(VectorMosaicGranule granule, boolean isSampleForSchema)
Find the DataStore for the given connection parameters.- Parameters:
granule- the granuleisSampleForSchema- true if the granule is a sample for schema
-
propertiesToMap
protected Map propertiesToMap(Properties connProps)
Converts properties to a Map of key/value pairs- Parameters:
connProps- the properties to convert- Returns:
- a Map of key/value pairs
-
getSPI
protected DataStoreFactorySpi getSPI(String preferredSPI)
Returns the data store factory SPI for the given name- Parameters:
preferredSPI- the name of the SPI to find- Returns:
- the SPI
-
-