21.3. FileSystem Data Store Parameters¶
Use the following parameters for a FileSystem data store:
Parameter |
Type |
Description |
|---|---|---|
|
String |
A convenience method for specifying the Iceberg catalog |
|
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 |
|
Int |
When writing to multiple partitions at once, this restricts the maximum number of
partition files to hold open at one time, per writer, defaults to |
|
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 |
|
String |
Specify the type of registry used to publish metrics. Must be one of |
|
String |
Override the default registry config. See Data Store Metrics for configuration details. |
There are different ways to specify the configuration properties, but note that at least one of fs.catalog.type,
fs.config.properties or fs.config.file must be specified in order to load the FileSystem data store.
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.catalog.type", "rest",
"fs.config.properties", String.join("\n", "uri=http://localhost:8080/", "iceberg.namespace=geomesa")
);
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.