Qore jni Module
1.0.1
|
Java wrapper for the Mapper.Mapper class in Qore. More...
Public Member Methods | |
Mapper (QoreObject obj) | |
creates the object as a wrapper for the Qore object | |
Object | getRuntime (String key) throws Throwable |
get current runtime option value for a key More... | |
String | getFieldName (String fname) throws Throwable |
returns a descriptive name of the given field if possible, otherwise returns the field name itself | |
HashMap< String, Object > | validKeys () throws Throwable |
returns a list of valid field keys for this class (can be overridden in subclasses) More... | |
HashMap< String, Object > | validTypes () throws Throwable |
returns a list of valid field types for this class (can be overridden in subclasses) More... | |
HashMap< String, Object > | optionKeys () throws Throwable |
returns a list of valid constructor options for this class (can be overridden in subclasses) More... | |
HashMap< String, Object > | getInputRecord () throws Throwable |
returns the value of the "input" option More... | |
HashMap< String, Object > | getOutputRecord () throws Throwable |
returns the value of the "output" option More... | |
HashMap< String, Object > [] | mapAll (Map< String, Object >[] recs) throws Throwable |
maps all input records and returns the mapped data as a list of output records More... | |
HashMap< String, Object > [] | mapAll (Map< String, Object > recs) throws Throwable |
maps all input records and returns the mapped data as a list of output records More... | |
HashMap< String, Object > | mapData (Map< String, Object > rec) throws Throwable |
processes the input record and returns a Map<String, Object> of the mapped values where the keys in the Map<String, Object> returned are the target field names; the order of the fields in the Map<String, Object> returned is the same order as the keys in the map hash. More... | |
Public Member Methods inherited from org.qore.jni.QoreObjectWrapper | |
QoreObjectWrapper (QoreObject obj) | |
creates the wrapper object with the Qore object | |
void | release () |
releases the Qore object; do not call any further methods on the object after this call | |
QoreObject | getQoreObject () |
returns the Qore object | |
String | className () |
returns the class name for the Qore object | |
boolean | instanceOf (String class_name) |
returns true if the object is an instance of the given class | |
Additional Inherited Members | |
Private Attributes inherited from org.qore.jni.QoreObjectWrapper | |
QoreObject | obj |
the wrapper Qore object | |
Java wrapper for the Mapper.Mapper class in Qore.
|
inline |
returns the value of the "input"
option
|
inline |
returns the value of the "output"
option
|
inline |
get current runtime option value for a key
key | the runtime option key |
|
inline |
maps all input records and returns the mapped data as a list of output records
this method applies the mapData() method to all input records and returns the resulting list
recs | the list of input records |
MISSING-INPUT | a field marked mandatory is missing |
STRING-TOO-LONG | a field value exceeds the maximum value and the 'trunc' key is not set |
INVALID-NUMBER | the field is marked as numeric but the input value contains non-numeric data |
|
inline |
maps all input records and returns the mapped data as a list of output records
this method applies the mapData() method to all input records and returns the resulting list
recs | a Map<String, Object> of lists of input records |
MISSING-INPUT | a field marked mandatory is missing |
STRING-TOO-LONG | a field value exceeds the maximum value and the 'trunc' key is not set |
INVALID-NUMBER | the field is marked as numeric but the input value contains non-numeric data |
|
inline |
processes the input record and returns a Map<String, Object> of the mapped values where the keys in the Map<String, Object> returned are the target field names; the order of the fields in the Map<String, Object> returned is the same order as the keys in the map hash.
rec | the record to translate |
MISSING-INPUT | a field marked mandatory is missing |
STRING-TOO-LONG | a field value exceeds the maximum value and the 'trunc' key is not set |
INVALID-NUMBER | the field is marked as numeric but the input value contains non-numeric data |
|
inline |
returns a list of valid constructor options for this class (can be overridden in subclasses)
|
inline |
returns a list of valid field keys for this class (can be overridden in subclasses)
|
inline |
returns a list of valid field types for this class (can be overridden in subclasses)