OpenCPUTask supports the execution of the OpenCPU Fluent R DSL. For a complete description of working with OpenCPUTask and the OpenCPU Fluent R DSL visit the Fluent R project home page on github.
Modifiers | Name | Description |
---|---|---|
java.util.Map |
config |
Constructor and description |
---|
OpenCPUTask
() Use OpenCPUTaskBuilder to create instances of OpenCPUTask. |
Type | Name and description |
---|---|
FluentResult |
execute() Execute Fluent R DSL on task and return results. |
OpenCPUTask |
send(java.lang.String data) Send input data as a query string on task execution. |
OpenCPUTask |
send(java.lang.Object data) Send input data as JSON represented as Map on task execution. |
Use OpenCPUTaskBuilder to create instances of OpenCPUTask.
Execute Fluent R DSL on task and return results.
Send input data as a query string on task execution.
A query string has the format "name=value". When there are two or more inputs use the & character to separate the inputs, for example: "n=10&mean=5".
Send input data as JSON represented as Map on task execution.
Here is an example of simple JSON and it's corresponding Map representation:
{ "n" : 10, "mean" :5 } = [ "n" : 10, "mean" : 5 ]
Simple R Integration for Java, Groovy, Scala and Clojure Developers.