README.txt 1.17 KB
Newer Older
1 2 3
README
======

R.W.Majeed's avatar
R.W.Majeed committed
4 5 6 7 8 9 10 11 12
Developing and testing import descriptors
-----------------------------------------
For standalone operation of import descriptor parsing,
put histream-core.jar, histream-import.jar and histream-js.jar 
into a single folder and run the following command:

java -cp \*.jar de.sekmi.histream.etl.XMLExport datasource.xml


13 14 15 16 17 18 19 20
Schema/XSD for import descriptions
----------------------------------
If you want an XSD file for the import description XML,
you can run `target/classes/schemagen.bat` or `target/classes/schemagen.sh`
after a successful build. The resulting schema will be stored in
`target/generated-sources/schemagen/`.

 
21 22 23 24 25 26 27 28
Parsing of columns
------------------
Columns are parsed as follows:
1. If a @constant-value attribute is present, that value is used. Jump directly to 5 (@na processing)
2. Otherwise, the actual column value is used
3. Regular expression substitution is performed if present via @regex-replace (may change the value)
4. Map rules are executed if present via map/case and map/otherwise elements. These rules may change the value (and concept code)
5. If the @na attribute is present and equals the calculated value, the value is removed completely
29