using BatchWriteStream#_map to map each record