-
Notifications
You must be signed in to change notification settings - Fork 1
ListCall
fluentcodes edited this page Nov 19, 2018
·
1 revision
ListCall.java is the base reading list type data and map it to Elastic Objects. It has a generic read and write method.
It contains the instance vars
- ListMapper.java: Map a List result to Elastic Objects.
- ListParams.java: Contains different parameter like length or start row.
The ListMapper class defines, how a raw list will be mapped to Elastic Objects. It has the following parameters, which are modifyable via attribute map.
| name | type | description |
|---|---|---|
| colKeys | List | a list of keys |
| ignoreHeader | boolean | do not use header row for mapping. |
| models | Models | Map to an object. Default is Map or List |
| mapPath | String> | a (parametrized) map path |
| doMap | boolean | type of operation set/map if false/true |
| pathPattern | PathPattern | a filter for mapping |
The generic ListCall read method call addList after a list object is retrieved.
The ListParams is used to parametrize a List-IO read request. It has the following parameters which are modifiable via attribute map.
| name | type | description |
|---|---|---|
| rowHead | Integer | the row of head information |
| rowStart | Integer | the row where the data will be put to a list result. |
| rowEnd | Integer | the row where the list result will be returned. |
| length | Integer | Alternative parameter to get rowEnd. |
| filter | String | A filter expression |