rec-framework / rec-core Goto Github PK
View Code? Open in Web Editor NEWData pipelining service
Home Page: http://rec.kimleo.net
License: MIT License
Data pipelining service
Home Page: http://rec.kimleo.net
License: MIT License
Sub issues or PRs:
Currently rec-core using self-created logger util, and we need replace it with SLF4J which might be better integrated with other logger facility.
Currently following test need to be migrated:
Issue found in #35 , when specified CSV file in utf-8 mode, it will cause potential encoding problem.
Suggest add a conversion method to convert file from one encoding to another.
Loader cannot get data file using rec file pattern
Currently using kotlin has a lot of weird behavior, try switch JS instead.
As this is built on top of Java 8, an option is nashorn.
but not sure nashorn support for modern ES standard, still will using Rhino.
Features:
RT.
RT.
code:
const cnt = counter(function() true);
const file = flat('timestamps.csv');
csv('combined.csv', "...")
.tee(cnt)
.to(file);
file
blabal, ... ,,,
Caused by: java.lang.IndexOutOfBoundsException: Index: 13, Size: 13
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at net.kimleo.rec.sepval.SepValEntry.get(SepValEntry.java:19)
at net.kimleo.rec.sepval.SepValEntry.get(SepValEntry.java:7)
at net.kimleo.rec.v2.accessor.RecordWrapper.getByIndex(RecordWrapper.java:41)
at net.kimleo.rec.v2.accessor.RecordWrapper.get(RecordWrapper.java:34)
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.collect(Unknown Source)
at net.kimleo.rec.v2.model.impl.FlatFileTarget.put(FlatFileTarget.java:30)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.util.Iterator.forEachRemaining(Unknown Source)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.forEach(Unknown Source)
at net.kimleo.rec.v2.model.impl.FlatFileTarget.putAll(FlatFileTarget.java:35)
at net.kimleo.rec.v2.model.Source.to(Source.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 15 more
As showed in #39 .
Raised this issue to fix it.
https://developers.google.com/public-data/
Add loader and exporter for DSPL format.
Discovered by #10 as we changed the API and architecture
When access an ascii file.
need to be optimized.
This is useful when trying to keep original record without specify all the field names
Rec get following error while loading and running rx.js:
=> Rec v2
Exception in thread "main" org.mozilla.javascript.JavaScriptException: Error: RxJS could not find any global context (window, self, global) (rx#34)
at org.mozilla.javascript.gen.rx_3._c_anonymous_2(rx:34)
at org.mozilla.javascript.gen.rx_3.call(rx)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.rx_3._c_anonymous_1(rx:20)
at org.mozilla.javascript.gen.rx_3.call(rx)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.mozilla.javascript.gen.rx_3._c_script_0(rx:20)
at org.mozilla.javascript.gen.rx_3.call(rx)
at org.mozilla.javascript.gen.rx_3.exec(rx)
at org.mozilla.javascript.commonjs.module.Require.executeModuleScript(Require.java:342)
at org.mozilla.javascript.commonjs.module.Require.getExportedModuleInterface(Require.java:290)
at org.mozilla.javascript.commonjs.module.Require.call(Require.java:219)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at org.mozilla.javascript.gen.abc_js_2._c_script_0(abc.js:1)
at org.mozilla.javascript.gen.abc_js_2.call(abc.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282)
at org.mozilla.javascript.gen.abc_js_2.call(abc.js)
at org.mozilla.javascript.gen.abc_js_2.exec(abc.js)
at org.mozilla.javascript.commonjs.module.Require.executeModuleScript(Require.java:342)
at org.mozilla.javascript.commonjs.module.Require.getExportedModuleInterface(Require.java:290)
at org.mozilla.javascript.commonjs.module.Require.requireMain(Require.java:137)
at net.kimleo.rec.v2.scripting.Scripting.runReader(Scripting.java:34)
at net.kimleo.rec.v2.scripting.Scripting.runfile(Scripting.java:22)
at net.kimleo.rec.App.execute(App.java:66)
at net.kimleo.rec.App.main(App.java:28)
Discovered when spike #34
Performance issue found when using JS scripting tools:
Proposed using indices
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.