Package org.geotools.data.duckdb
Class DuckDBDataStoreFactory
- Object
- 
- JDBCDataStoreFactory
- 
- AbstractDuckDBDataStoreFactory
- 
- DuckDBDataStoreFactory
 
 
 
- 
- All Implemented Interfaces:
- DataAccessFactory,- DataStoreFactorySpi,- Factory
 
 public class DuckDBDataStoreFactory extends AbstractDuckDBDataStoreFactory implements DataStoreFactorySpi 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface DataAccessFactoryDataAccessFactory.Param
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected FilebaseDirectorybase location to store temporary filesstatic DataAccessFactory.ParamDB_PATHParameter for DuckDB database filestatic DataAccessFactory.ParamIN_MEMORYParameter for memory only database- 
Fields inherited from class AbstractDuckDBDataStoreFactoryFETCHSIZE, NAMESPACE, SCREENMAP, SIMPLIFY
 - 
Fields inherited from class JDBCDataStoreFactoryBATCH_INSERT_SIZE, CALLBACK_FACTORY, DATABASE, DATASOURCE, DBTYPE, EVICTOR_TESTS_PER_RUN, EXPOSE_PK, HOST, MAX_OPEN_PREPARED_STATEMENTS, MAXCONN, MAXWAIT, MIN_EVICTABLE_TIME, MINCONN, PASSWD, PK_METADATA_TABLE, PORT, SCHEMA, SQL_ON_BORROW, SQL_ON_RELEASE, TEST_WHILE_IDLE, TIME_BETWEEN_EVICTOR_RUNS, USER, VALIDATECONN
 
- 
 - 
Constructor SummaryConstructors Constructor Description DuckDBDataStoreFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDatabaseSpecificParameters(Map<String,Object> parameters)Allows subclasses to add their specific parametersprotected SQLDialectcreateSQLDialect(JDBCDataStore dataStore)Creates the dialect that the datastore uses for communication with the underlying database.FilegetBaseDirectory()The base location for any temporary files.protected StringgetDatabaseID()Returns a string to identify the type of the database.StringgetDescription()Describe the nature of the datasource constructed by this factory.StringgetDisplayName()Name suitable for display to end user.protected StringgetJDBCUrl(Map<String,?> params)Builds up the JDBC url in a jdbc::// : / Override if you need a different setup voidsetBaseDirectory(File baseDirectory)Sets the base location for any temporary files.protected JDBCDataStoresetupDataStore(JDBCDataStore dataStore, Map<String,?> params)Allows subclasses to perform additional setup for their specific datastores- 
Methods inherited from class AbstractDuckDBDataStoreFactorycreateDataSource, createDataStoreInternal, getDriverClassName, getValidationQuery, setupParameters
 - 
Methods inherited from class JDBCDataStoreFactorycanProcess, checkDBType, checkDBType, createDataSource, createDataStore, createNewDataStore, createSQLDialect, getImplementationHints, getParametersInfo, isAvailable
 - 
Methods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface DataAccessFactorycanProcess, getParametersInfo, isAvailable
 - 
Methods inherited from interface DataStoreFactorySpicreateDataStore, createNewDataStore
 - 
Methods inherited from interface FactorygetImplementationHints
 
- 
 
- 
- 
- 
Field Detail- 
IN_MEMORYpublic static final DataAccessFactory.Param IN_MEMORY Parameter for memory only database
 - 
DB_PATHpublic static final DataAccessFactory.Param DB_PATH Parameter for DuckDB database file
 - 
baseDirectoryprotected File baseDirectory base location to store temporary files
 
- 
 - 
Method Detail- 
setBaseDirectorypublic void setBaseDirectory(File baseDirectory) Sets the base location for any temporary files.- Parameters:
- baseDirectory- A directory.
 
 - 
getBaseDirectorypublic File getBaseDirectory() The base location for any temporary files.
 - 
getDisplayNamepublic String getDisplayName() Description copied from interface:DataAccessFactoryName suitable for display to end user.A non localized display name for this data store type. - Specified by:
- getDisplayNamein interface- DataAccessFactory
- Overrides:
- getDisplayNamein class- JDBCDataStoreFactory
- Returns:
- A short name suitable for display in a user interface.
 
 - 
getDescriptionpublic String getDescription() Description copied from interface:DataAccessFactoryDescribe the nature of the datasource constructed by this factory.A non localized description of this data store type. - Specified by:
- getDescriptionin interface- DataAccessFactory
- Returns:
- A human readable description that is suitable for inclusion in a list of available datasources.
 
 - 
addDatabaseSpecificParametersprotected void addDatabaseSpecificParameters(Map<String,Object> parameters) Description copied from class:AbstractDuckDBDataStoreFactoryAllows subclasses to add their specific parameters- Specified by:
- addDatabaseSpecificParametersin class- AbstractDuckDBDataStoreFactory
 
 - 
getDatabaseIDprotected String getDatabaseID() Description copied from class:JDBCDataStoreFactoryReturns a string to identify the type of the database.Example: 'postgis'. - Specified by:
- getDatabaseIDin class- JDBCDataStoreFactory
 
 - 
getJDBCUrlprotected String getJDBCUrl(Map<String,?> params) throws IOException Description copied from class:JDBCDataStoreFactoryBuilds up the JDBC url in a jdbc::// : / Override if you need a different setup - Specified by:
- getJDBCUrlin class- AbstractDuckDBDataStoreFactory
- Throws:
- IOException
 
 - 
createSQLDialectprotected SQLDialect createSQLDialect(JDBCDataStore dataStore) Description copied from class:JDBCDataStoreFactoryCreates the dialect that the datastore uses for communication with the underlying database.- Specified by:
- createSQLDialectin class- JDBCDataStoreFactory
- Parameters:
- dataStore- The datastore.
 
 - 
setupDataStoreprotected JDBCDataStore setupDataStore(JDBCDataStore dataStore, Map<String,?> params) throws IOException Description copied from class:AbstractDuckDBDataStoreFactoryAllows subclasses to perform additional setup for their specific datastores- Specified by:
- setupDataStorein class- AbstractDuckDBDataStoreFactory
- Throws:
- IOException
 
 
- 
 
-