Package org.geotools.coverage.io.catalog
Class DataStoreConfiguration
- Object
-
- DataStoreConfiguration
-
public class DataStoreConfiguration extends Object
A simple class storing DataStore connection properties such as the FactorySPI used to create that datastore, as well as the connections parameters. In the beginning, Multidim coverages were holding granules index within an H2 database for each NetCDF/GRIB file.Starting with 14.x, it is also possible to deal with a PostGIS DB to be shared across different readers/files. A new attribute LOCATION is used to distinguish granules coming from specific file/reader instances.
Starting with 19.x, it is also possible to use a
Repository
providing an externally managed store identified by name- Author:
- Daniele Romagnoli, GeoSolutions
-
-
Constructor Summary
Constructors Constructor Description DataStoreConfiguration(String storeName)
DataStoreConfiguration(Map<String,Serializable> datastoreParams)
Default instance is using a H2 DB for each fileDataStoreConfiguration(DataStoreFactorySpi datastoreSpi, Map<String,Serializable> datastoreParams)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataStoreFactorySpi
getDatastoreSpi()
static Map<String,Serializable>
getDefaultParams(String database, File parentLocation)
Return default params for the 1 File <-> 1 H2 DB classic configuration.Map<String,Serializable>
getParams()
String
getStoreName()
boolean
isShared()
void
setDatastoreSpi(DataStoreFactorySpi datastoreSpi)
void
setParams(Map<String,Serializable> params)
void
setShared(boolean shared)
-
-
-
Constructor Detail
-
DataStoreConfiguration
public DataStoreConfiguration(Map<String,Serializable> datastoreParams)
Default instance is using a H2 DB for each file
-
DataStoreConfiguration
public DataStoreConfiguration(DataStoreFactorySpi datastoreSpi, Map<String,Serializable> datastoreParams)
-
DataStoreConfiguration
public DataStoreConfiguration(String storeName)
-
-
Method Detail
-
getDatastoreSpi
public DataStoreFactorySpi getDatastoreSpi()
-
setDatastoreSpi
public void setDatastoreSpi(DataStoreFactorySpi datastoreSpi)
-
getParams
public Map<String,Serializable> getParams()
-
setParams
public void setParams(Map<String,Serializable> params)
-
isShared
public boolean isShared()
-
setShared
public void setShared(boolean shared)
-
getStoreName
public String getStoreName()
-
getDefaultParams
public static Map<String,Serializable> getDefaultParams(String database, File parentLocation)
Return default params for the 1 File <-> 1 H2 DB classic configuration.
-
-