(int count)
| 287 | } |
| 288 | |
| 289 | private int newCursorPosition(int count) { |
| 290 | // Code copied from Math.addExact(int x, int y) |
| 291 | int newCursorPosition = cursorPosition + count; |
| 292 | if (((cursorPosition ^ newCursorPosition) & (count ^ newCursorPosition)) < 0) { |
| 293 | return Integer.MAX_VALUE; |
| 294 | } else { |
| 295 | return newCursorPosition; |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | private BatchIterator<Row> biFromItems(List<Object[]> items) { |
| 300 | BatchIterator<Object[]> objectRows; |