MCPcopy Create free account
hub / github.com/crate/crate / newCursorPosition

Method newCursorPosition

server/src/main/java/io/crate/session/Cursor.java:289–297  ·  view source on GitHub ↗
(int count)

Source from the content-addressed store, hash-verified

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;

Callers 1

triggerConsumerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected