|
12 | 12 |
|
13 | 13 | import org.aksw.jenax.arq.picocli.CmdMixinArq;
|
14 | 14 | import org.aksw.jenax.arq.picocli.CmdMixinSparqlPaginate;
|
| 15 | +import org.aksw.jenax.dataaccess.sparql.polyfill.datasource.RdfDataSourceWithLocalLateral.PolyfillLateralConfig; |
15 | 16 | import org.aksw.rdf_processing_toolkit.cli.cmd.CmdCommonBase;
|
16 | 17 | import org.aksw.rdf_processing_toolkit.cli.cmd.VersionProviderRdfProcessingToolkit;
|
17 | 18 | import org.aksw.sparql_integrate.cli.main.SparqlIntegrateCmdImpls;
|
|
21 | 22 | import picocli.CommandLine.ArgGroup;
|
22 | 23 | import picocli.CommandLine.Command;
|
23 | 24 | import picocli.CommandLine.IParameterConsumer;
|
| 25 | +import picocli.CommandLine.ITypeConverter; |
24 | 26 | import picocli.CommandLine.Mixin;
|
25 | 27 | import picocli.CommandLine.Model.ArgSpec;
|
26 | 28 | import picocli.CommandLine.Model.CommandSpec;
|
@@ -206,8 +208,18 @@ public static class OutputSpec {
|
206 | 208 | negatable = true, defaultValue = "true", fallbackValue = "true")
|
207 | 209 | public boolean graphQlAutoConfigure;
|
208 | 210 |
|
209 |
| - @Option(names = { "--polyfill-lateral" }, description = "Polyfill LATERAL by evaluating it on the client (may transmit large volumes of data).") |
210 |
| - public boolean polyfillLateral; |
| 211 | + @Option(names = { "--polyfill-lateral" }, |
| 212 | + description = "Polyfill LATERAL by evaluating it on the client (may transmit large volumes of data). Format: [{bulkSize}[-{concurrentThreadCount}]]", |
| 213 | + converter = TypeConverterPolyfillLateralConfig.class, |
| 214 | + fallbackValue = "10-0") |
| 215 | + public PolyfillLateralConfig polyfillLateral = null; |
| 216 | + |
| 217 | + public static class TypeConverterPolyfillLateralConfig implements ITypeConverter<PolyfillLateralConfig> { |
| 218 | + @Override |
| 219 | + public PolyfillLateralConfig convert(String s) { |
| 220 | + return PolyfillLateralConfig.parse(s); |
| 221 | + } |
| 222 | + } |
211 | 223 |
|
212 | 224 | /**
|
213 | 225 | * --jq may be followed by an integer - picocli seems to greedily parse any argument even if it is not an integer
|
|
0 commit comments