This function maps the query to a new query.
QueryMap(query=[query], callback=[function:Function], parallel=[boolean], maxThreads=[integer])
Argument | Type | Required | Description | Default |
---|---|---|---|---|
query |
query |
true |
The query to iterate over | |
callback |
function:Function |
true |
The function to invoke for each item. The function will be passed 3 arguments: the row, the currentRow, the query. You can alternatively pass a Java Function which will only receive the 1st arg. | |
parallel |
boolean |
false |
Specifies whether the items can be executed in parallel | false |
maxThreads |
integer |
false |
The maximum number of threads to use when parallel = true |
- QueryAddColumn
- QueryAddRow
- QueryAppend
- QueryClear
- QueryColumnArray
- QueryColumnCount
- QueryColumnData
- QueryColumnExists
- QueryCurrentRow
- QueryDeleteColumn
- QueryDeleteRow
- QueryEach
- QueryEvery
- QueryFilter
- QueryGetCell
- QueryGetResult
- QueryInsertAt
- QueryKeyExists
- QueryNew
- QueryPrepend
- QueryRecordCount
- QueryReduce
- QueryReverse
- QueryRowData
- QueryRowSwap
- QuerySetCell
- QuerySetRow
- QuerySlice
- QuerySome
- QuerySort