Class GranuleStoreFinder

  • Direct Known Subclasses:
    GranuleStoreFinderImpl

    public abstract class GranuleStoreFinder
    extends Object
    Utility class to find a DataStoreFactorySpi for a given set of connection parameters.
    • Constructor Detail

      • GranuleStoreFinder

        public GranuleStoreFinder()
    • Method Detail

      • findDataStore

        public abstract Optional<DataStore> findDataStore​(VectorMosaicGranule granule,
                                                          boolean isSampleForSchema)
        Find the DataStore for the given connection parameters.
        Parameters:
        granule - the granule
        isSampleForSchema - 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