activepivot - How to use Relational Stores with a position based data file? -


i have different data files mapped on relational stores. have formatter contains separators used different data files (most of them csv). here example of how looks like:

dqki 435741198746445 45879645422727jhufhglobal collateral services aggregator v9

the rule read file following: index 0 3, it's code name, index 8 11, it's pid, index 11 20, it's account number, , on...

how specify such rule in activepivot relational stores?

the relational-store of activepivot ships high performance, multithreaded csv-source parse files , load them data stores. suppose that's hope use fixed-length field file.

but not supported in current version of relational store (1.5.x).

  • you pre-process file small script add separator character @ end of each of fields. entire csv source can reused immediately.
  • you write own data source defines fields offset in text line. if can reuse of fast field parsers available in csv source project (they work on char sequences):

    com.quartetfs.fwk.format.impl.doubleparser com.quartetfs.fwk.format.impl.floatparser com.quartetfs.fwk.format.impl.doublevectorparser com.quartetfs.fwk.format.impl.floatvectorparser com.quartetfs.fwk.format.impl.integerparser com.quartetfs.fwk.format.impl.integervectorparser com.quartetfs.fwk.format.impl.longparser com.quartetfs.fwk.format.impl.shortparser com.quartetfs.fwk.format.impl.stringparser com.quartetfs.fwk.format.impl.dateparser 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -