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

Method biFromItems

server/src/main/java/io/crate/session/Cursor.java:299–310  ·  view source on GitHub ↗
(List<Object[]> items)

Source from the content-addressed store, hash-verified

297 }
298
299 private BatchIterator<Row> biFromItems(List<Object[]> items) {
300 BatchIterator<Object[]> objectRows;
301 if (items.isEmpty()) {
302 objectRows = InMemoryBatchIterator.empty(null);
303 } else {
304 objectRows = InMemoryBatchIterator.of(items, null, false);
305 }
306 return objectRows.map(cells -> {
307 sharedRow.cells(cells);
308 return sharedRow;
309 });
310 }
311
312 public List<Symbol> outputs() {
313 return outputs;

Callers 1

triggerConsumerMethod · 0.95

Calls 5

emptyMethod · 0.95
ofMethod · 0.95
mapMethod · 0.65
isEmptyMethod · 0.45
cellsMethod · 0.45

Tested by

no test coverage detected