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 SummaryFields Modifier and Type Field Description protected StringpreferredSPIprotected Repositoryrepository- 
Fields inherited from class GranuleStoreFindergranuleTracker
 
- 
 - 
Constructor SummaryConstructors Constructor Description GranuleStoreFinderImpl(String preferredSPI, Repository repository)Constructor that accepts a nullable preferred SPI.
 - 
Method SummaryAll 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 GranuleStoreFindergetSPI, propertiesToMap
 
- 
 
- 
- 
- 
Field Detail- 
preferredSPIprotected final String preferredSPI 
 - 
repositoryprotected final Repository repository 
 
- 
 - 
Constructor Detail- 
GranuleStoreFinderImplpublic GranuleStoreFinderImpl(String preferredSPI, Repository repository) Constructor that accepts a nullable preferred SPI.- Parameters:
- preferredSPI- the preferred SPI
 
 
- 
 - 
Method Detail- 
findDataStorepublic Optional<DataStore> findDataStore(VectorMosaicGranule granule, boolean isSampleForSchema) Description copied from class:GranuleStoreFinderFind the DataStore for the given connection parameters.- Specified by:
- findDataStorein class- GranuleStoreFinder
- Parameters:
- granule- the granule
- isSampleForSchema- true if the granule is a sample for schema
 
 - 
getPreferredSPIpublic String getPreferredSPI() 
 
- 
 
-