21.3. FileSystem Data Store Parameters¶
Use the following parameters for a FileSystem data store (required parameters are marked with *):
Parameter |
Type |
Description |
|---|---|---|
|
String |
The root path to write and read data from (e.g. |
|
String |
Format for storing metadata. Must be one of |
|
String |
Storage configuration properties, in Java properties format. See
FileSystem DataStore Configuration and FileSystem Metadata for available properties. Environment
variables in property values will be interpolated using |
|
String |
The name of a file containing storage configuration properties, in Java properties
format. See FileSystem DataStore Configuration and FileSystem Metadata for available properties.
Environment variables in property values will be interpolated using |
|
String |
The file format to use, defaults to |
|
String |
Timeout for closing a partition file after write, e.g. ‘60 seconds’. This is to prevent too many open files during large write operations |
|
Int |
The number of threads used for each query, defaults to |
|
String |
The max time a query will be allowed to run before being killed. The
timeout is specified as a duration, e.g. |
|
String |
Comma-delimited superset of authorizations that will be used for queries. See Reading Visibility Labels for details |
|
String |
Class name for an |
21.3.1. Programmatic Access¶
An instance of a FileSystem data store can be obtained through the normal GeoTools discovery methods, assuming that the GeoMesa code is on the classpath:
Map<String, String> parameters = Map.of(
"fs.path", "hdfs://localhost:9000/fs-root/",
"fs.metadata.type", "file"
);
org.geotools.api.data.DataStore dataStore =
org.geotools.api.data.DataStoreFinder.getDataStore(parameters);
More information on using GeoTools can be found in the GeoTools user guide.