You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+64-16Lines changed: 64 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ When upgrading to version 0.6.0 from version 0.5.x or earlier, please follow the
70
70
This package is available as docker image [`radarbase/radar-output-restructure`](https://hub.docker.com/r/radarbase/radar-output-restructure). The entrypoint of the image is the current application. So in all the commands listed in usage, replace `radar-output-restructure` with for example:
| filename | default time binning with attempt suffix and file extension |
191
+
| attempt | attempt suffix for if a file with an incompatible format already exists |
192
+
| extension | file extension |
193
+
194
+
At least `filename` should be used, or a combination of `attempt` and `extension`.
195
+
196
+
Then there are also plugins that take their own format. The `time` plugin formats a parameter according to the record time. It takes parameters with format `time:<date format>` where `<date format>` should be replaced by a [Java date format](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/format/DateTimeFormatter.html), such as `YYYY-mm-dd`. The plugin tries to use the following time fields, in this order: a double `time` in the value struct, `timeStart` double or `start` long in the key struct, `dateTime` string in the value struct, `date` string in the value struct, `timeReceived` double in the value struct or `timeCompleted` double in the value struct. The first valid value used. If no valid time values are found, `unknown-date` is returned.
197
+
198
+
The `key` and `value` plugins read values from the key or value structs of a given record. For example, parameter `value:color.red` will attempt to read the value struct, finding first the `color` field and then the enclosed `red` field. If no such value exists, `unknown-value` will be used in the format.
199
+
154
200
### Cleaner
155
201
156
202
Source files can be automatically be removed by a cleaner process. This checks whether the file has already been extracted and is older than a configured age. This feature is not enabled by default. It can be configured in the `cleaner` configuration section:
@@ -182,7 +228,7 @@ This package requires at least Java JDK 8. Build the distribution with
182
228
and install the package into `/usr/local` with for example
183
229
```shell
184
230
sudo mkdir -p /usr/local
185
-
sudo tar -xzf build/distributions/radar-output-restructure-2.2.1.tar.gz -C /usr/local --strip-components=1
231
+
sudo tar -xzf build/distributions/radar-output-restructure-2.3.0.tar.gz -C /usr/local --strip-components=1
186
232
```
187
233
188
234
Now the `radar-output-restructure` command should be available.
@@ -192,10 +238,12 @@ Now the `radar-output-restructure` command should be available.
192
238
To implement alternative storage paths, storage drivers or storage formats, put your custom JAR in
193
239
`$APP_DIR/lib/radar-output-plugins`. To load them, use the following options:
| `compression: factory: ...` | `org.radarbase.output.compression.CompressionFactory` | Factory class to use for data compression. | CompressionFactory |
| `compression: factory: ...` | `org.radarbase.output.compression.CompressionFactory` | Factory class to use for data compression. | CompressionFactory |
200
246
201
247
The respective `<type>: properties: {}` configuration parameters can be used to provide custom configuration of the factory. This configuration will be passed to the `Plugin#init(Map<String, String>)` method.
248
+
249
+
By adding additional path format plugins to the classpath, the path format of FormattedPathFactory may be expanded with different parameters or lookup engines.
0 commit comments