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

Method bufferedRowOrNone

server/src/main/java/io/crate/session/Cursor.java:182–190  ·  view source on GitHub ↗
(int idx)

Source from the content-addressed store, hash-verified

180 }
181
182 private BatchIterator<Row> bufferedRowOrNone(int idx) {
183 if (idx < 0 || (cursorPosition >= rows.size() && exhausted)) {
184 return InMemoryBatchIterator.empty(SentinelRow.SENTINEL);
185 } else {
186 Object[] cells = rows.get(idx);
187 sharedRow.cells(cells);
188 return InMemoryBatchIterator.of(sharedRow, SentinelRow.SENTINEL);
189 }
190 }
191
192 private void triggerConsumer(RowConsumer consumer, BatchIterator<Row> fullResult, ScrollMode mode, long lCount) {
193 // Long.MAX_VALUE is used as "ALL"

Callers 1

triggerConsumerMethod · 0.95

Calls 5

emptyMethod · 0.95
ofMethod · 0.95
sizeMethod · 0.65
getMethod · 0.65
cellsMethod · 0.45

Tested by

no test coverage detected