Skip to content

Commit 1c7bbb8

Browse files
authored
feat: use sqlite instead of inmemory state persistence (#10)
1 parent 5a6cbdd commit 1c7bbb8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/java/be/vlaanderen/informatievlaanderen/ldes/gitb/ldio/pipeline/LdioLdesClientBuilder.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55

66
public class LdioLdesClientBuilder extends LdioComponentBuilder {
77
public LdioLdesClientBuilder() {
8-
super("Ldio:LdesClient", new HashMap<>(Map.of("source-format", "application/n-quads")));
8+
super("Ldio:LdesClient",
9+
new HashMap<>(Map.of(
10+
"source-format", "application/n-quads",
11+
"state", "sqlite"
12+
))
13+
);
914
}
1015

1116
public LdioLdesClientBuilder withUrl(String url) {

src/test/resources/ldio-pipeline.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"config": {
77
"urls": "http://test-server/test-collection",
88
"source-format": "application/n-quads",
9+
"state": "sqlite",
910
"timestamp-path": "http://www.w3.org/ns/prov#generatedAtTime",
1011
"materialisation": {
1112
"enabled": true,

0 commit comments

Comments
 (0)