Displaying 4 results from an estimated 4 matches for "4efb284e3c15c6a2db16".
2016 Jan 14
2
JDataFrame API
Hi Folks,
If you need to send data from Java to R you may consider using the
JDataFrame API -- which is used to convert data into JSON which then
can be converted into a data frame in R.
Here's the project page:
https://coherentlogic.com/middleware-development/jdataframe/
and here's a partial example which demonstrates what the API looks like:
String result = new JDataFrameBuilder()
2016 Jan 15
2
JDataFrame API
...t for practical purposes is doesn't seem like the most efficient solution.
>
> Since you didn't provide any code, I built a test case using the build-in Java JSON API to build a medium-sized dataset (1e6 rows) and read it in just to get a ballpark (see
> https://gist.github.com/s-u/4efb284e3c15c6a2db16
>
> # generate:
> time java -cp .:javax.json-api-1.0.jar:javax.json-1.0.4.jar A > 1e6
>
> real 0m2.764s
> user 0m20.356s
> sys 0m0.962s
>
> # read:
>> system.time(temp <- RJSONIO::fromJSON("1e6"))
> user system elapsed
> 3.484...
2016 Jan 15
0
JDataFrame API
...data sets, but for practical purposes is doesn't seem like the most efficient solution.
Since you didn't provide any code, I built a test case using the build-in Java JSON API to build a medium-sized dataset (1e6 rows) and read it in just to get a ballpark (see
https://gist.github.com/s-u/4efb284e3c15c6a2db16
# generate:
time java -cp .:javax.json-api-1.0.jar:javax.json-1.0.4.jar A > 1e6
real 0m2.764s
user 0m20.356s
sys 0m0.962s
# read:
> system.time(temp <- RJSONIO::fromJSON("1e6"))
user system elapsed
3.484 0.279 3.834
> str(temp)
List of 2
$ V1: num [1:1000000] 0...
2016 Jan 15
0
JDataFrame API
...al purposes is doesn't seem like the most efficient solution.
>>
>> Since you didn't provide any code, I built a test case using the build-in Java JSON API to build a medium-sized dataset (1e6 rows) and read it in just to get a ballpark (see
>> https://gist.github.com/s-u/4efb284e3c15c6a2db16
>>
>> # generate:
>> time java -cp .:javax.json-api-1.0.jar:javax.json-1.0.4.jar A > 1e6
>>
>> real 0m2.764s
>> user 0m20.356s
>> sys 0m0.962s
>>
>> # read:
>>> system.time(temp <- RJSONIO::fromJSON("1e6"))...