Is the MapReduce map function's "batch" parameter zero-indexed or one-indexed?

The MapReduce type defines a map function as follows:

map(batch, objs, job, subBatch)

where batch is an integer. Is batch zero-indexed or one-indexed?

The (general) convention that is followed is that index fields are zero indexed while “number” fields are 1-indexed. Here, batch refers to a number so the first batch number is 1.

Cheerio, Harry.

1 Like

How is it being used @harry?