Package org.geotools.vectormosaic
Class GranuleStoreFinder
Object
GranuleStoreFinder
- Direct Known Subclasses:
GranuleStoreFinderImpl
Utility class to find a DataStoreFactorySpi for a given set of connection parameters.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindDataStore(VectorMosaicGranule granule, boolean isSampleForSchema) Find the DataStore for the given connection parameters.protected DataStoreFactorySpiReturns the data store factory SPI for the given nameprotected MappropertiesToMap(Properties connProps) Converts properties to a Map of key/value pairs
-
Field Details
-
granuleTracker
-
-
Constructor Details
-
GranuleStoreFinder
public GranuleStoreFinder()
-
-
Method Details
-
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
Converts properties to a Map of key/value pairs- Parameters:
connProps- the properties to convert- Returns:
- a Map of key/value pairs
-
getSPI
Returns the data store factory SPI for the given name- Parameters:
preferredSPI- the name of the SPI to find- Returns:
- the SPI
-