Package org.geotools.data.duckdb
Class DuckDBDataStoreFactory
Object
ForwardingDataStoreFactory<DuckDBJDBCDataStoreFactory>
DuckDBDataStoreFactory
- All Implemented Interfaces:
DataAccessFactory,DataStoreFactorySpi,Factory
public class DuckDBDataStoreFactory
extends ForwardingDataStoreFactory<DuckDBJDBCDataStoreFactory>
implements DataStoreFactorySpi
Public DuckDB datastore factory that wraps the internal JDBC datastore to avoid exposing the raw JDBC store type to
regular callers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataAccessFactory
DataAccessFactory.Param -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataAccessFactory.Paramstatic final DataAccessFactory.Paramstatic final DataAccessFactory.ParamFields inherited from class ForwardingDataStoreFactory
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDataStore(Map<String, ?> params) Construct a live data source using the params specifed.createNewDataStore(Map<String, ?> params) voidsetBaseDirectory(File baseDirectory) Methods inherited from class ForwardingDataStoreFactory
canProcess, getDescription, getDisplayName, getParametersInfo, isAvailableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataAccessFactory
canProcess, getDescription, getDisplayName, getParametersInfo, isAvailableMethods inherited from interface Factory
getImplementationHints
-
Field Details
-
IN_MEMORY
-
DB_PATH
-
SIMPLIFY
-
-
Constructor Details
-
DuckDBDataStoreFactory
public DuckDBDataStoreFactory()
-
-
Method Details
-
setBaseDirectory
-
getBaseDirectory
-
createDataStore
Description copied from interface:DataStoreFactorySpiConstruct a live data source using the params specifed.You can think of this as setting up a connection to the back end data source.
Magic Params: the following params are magic and are honoured by convention by the GeoServer and uDig application.
- "user": is taken to be the user name
- "passwd": is taken to be the password
- "namespace": is taken to be the namespace prefix (and will be kept in sync with GeoServer namespace management.
- Specified by:
createDataStorein interfaceDataAccessFactory- Specified by:
createDataStorein interfaceDataStoreFactorySpi- Overrides:
createDataStorein classForwardingDataStoreFactory<DuckDBJDBCDataStoreFactory>- Parameters:
params- The full set of information needed to construct a live data store. Typical key values for the map include: url - location of a resource, used by file reading datasources. dbtype - the type of the database to connect to, e.g. postgis, mysql- Returns:
- The created DataStore, this may be null if the required resource was not found or if insufficent parameters were given. Note that canProcess() should have returned false if the problem is to do with insuficent parameters.
- Throws:
IOException- if there were any problems setting up (creating or connecting) the datasource.
-
createNewDataStore
- Specified by:
createNewDataStorein interfaceDataStoreFactorySpi- Overrides:
createNewDataStorein classForwardingDataStoreFactory<DuckDBJDBCDataStoreFactory>- Throws:
IOException
-