Class GeoParquetDataStoreFactory
- Object
-
- ForwardingDataStoreFactory<GeoParquetDataStoreFactoryDelegate>
-
- GeoParquetDataStoreFactory
-
- All Implemented Interfaces:
DataAccessFactory,DataStoreFactorySpi,Factory
public class GeoParquetDataStoreFactory extends ForwardingDataStoreFactory<GeoParquetDataStoreFactoryDelegate> implements DataStoreFactorySpi
DataStoreFactory for GeoParquet files, powered by DuckDB.This factory creates DataStore instances that can read and query GeoParquet format files, both local and remote. GeoParquet is an open format for geospatial data that builds on the Apache Parquet columnar storage format, providing efficient access to large geospatial datasets.
The implementation uses DuckDB and its extensions (spatial, parquet, httpfs) to handle the heavy lifting of reading and querying Parquet files. This provides excellent performance and compatibility with various storage backends including local files, HTTP/HTTPS, and S3.
Usage example:
Map<String, Object> params = new HashMap<>(); params.put("dbtype", "geoparquet"); params.put("uri", "file:/path/to/data.parquet"); DataStore store = DataStoreFinder.getDataStore(params);
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface DataAccessFactory
DataAccessFactory.Param
-
-
Field Summary
Fields Modifier and Type Field Description static DataAccessFactory.ParamDBTYPEstatic DataAccessFactory.ParamFETCHSIZEstatic DataAccessFactory.ParamMAX_HIVE_DEPTHstatic DataAccessFactory.ParamNAMESPACEstatic DataAccessFactory.ParamSCREENMAPstatic DataAccessFactory.ParamSIMPLIFYstatic DataAccessFactory.ParamURI_PARAM-
Fields inherited from class ForwardingDataStoreFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description GeoParquetDataStoreFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoparquetDataStorecreateDataStore(Map<String,?> params)Construct a live data source using the params specifed.-
Methods inherited from class ForwardingDataStoreFactory
canProcess, createNewDataStore, getDescription, getDisplayName, getParametersInfo, isAvailable
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface DataAccessFactory
canProcess, getDescription, getDisplayName, getParametersInfo, isAvailable
-
Methods inherited from interface DataStoreFactorySpi
createNewDataStore
-
Methods inherited from interface Factory
getImplementationHints
-
-
-
-
Field Detail
-
DBTYPE
public static final DataAccessFactory.Param DBTYPE
-
NAMESPACE
public static final DataAccessFactory.Param NAMESPACE
-
URI_PARAM
public static final DataAccessFactory.Param URI_PARAM
-
MAX_HIVE_DEPTH
public static final DataAccessFactory.Param MAX_HIVE_DEPTH
-
FETCHSIZE
public static final DataAccessFactory.Param FETCHSIZE
-
SCREENMAP
public static final DataAccessFactory.Param SCREENMAP
-
SIMPLIFY
public static final DataAccessFactory.Param SIMPLIFY
-
-
Method Detail
-
createDataStore
public GeoparquetDataStore createDataStore(Map<String,?> params) throws IOException
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<GeoParquetDataStoreFactoryDelegate>- 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.
-
-