Package org.geotools.vectormosaic
Class GranuleStoreFinderImpl
- Object
-
- GranuleStoreFinder
-
- GranuleStoreFinderImpl
-
public class GranuleStoreFinderImpl extends GranuleStoreFinder
Class used to find the DataStore for a VectorMosaicGranule. The lookup tries three possible avenues:- Using the store name, if set in the granule, to lookup the store in the provided
Repository - Using the connection properties if they are set in the granule
- Using the store name, if set in the granule, to lookup the store in the provided
-
-
Field Summary
Fields Modifier and Type Field Description protected StringpreferredSPIprotected Repositoryrepository-
Fields inherited from class GranuleStoreFinder
granuleTracker
-
-
Constructor Summary
Constructors Constructor Description GranuleStoreFinderImpl(String preferredSPI, Repository repository)Constructor that accepts a nullable preferred SPI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<DataStore>findDataStore(VectorMosaicGranule granule, boolean isSampleForSchema)Find the DataStore for the given connection parameters.StringgetPreferredSPI()-
Methods inherited from class GranuleStoreFinder
getSPI, propertiesToMap
-
-
-
-
Field Detail
-
preferredSPI
protected final String preferredSPI
-
repository
protected final Repository repository
-
-
Constructor Detail
-
GranuleStoreFinderImpl
public GranuleStoreFinderImpl(String preferredSPI, Repository repository)
Constructor that accepts a nullable preferred SPI.- Parameters:
preferredSPI- the preferred SPI
-
-
Method Detail
-
findDataStore
public Optional<DataStore> findDataStore(VectorMosaicGranule granule, boolean isSampleForSchema)
Description copied from class:GranuleStoreFinderFind the DataStore for the given connection parameters.- Specified by:
findDataStorein classGranuleStoreFinder- Parameters:
granule- the granuleisSampleForSchema- true if the granule is a sample for schema
-
getPreferredSPI
public String getPreferredSPI()
-
-