MCPcopy Create free account
hub / github.com/BaseXdb/basex / next

Method next

basex-core/src/main/java/org/basex/query/expr/DualMap.java:35–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 final long size = expr2.size() == 1 ? iter1.size() : -1;
34
35 @Override
36 public Item next() throws QueryException {
37 final QueryFocus qf = qc.focus;
38 final Value qv = qf.value;
39 try {
40 Item item;
41 do {
42 // left operand
43 item = qc.next(iter1);
44 if(item == null) break;
45 // right operand
46 qf.value = item;
47 item = expr2.item(qc, info);
48 qf.value = qv;
49 } while(item == Empty.VALUE);
50 return item;
51 } finally {
52 qf.value = qv;
53 }
54 }
55
56 @Override
57 public Item get(final long i) throws QueryException {

Callers

nothing calls this directly

Calls 2

nextMethod · 0.65
itemMethod · 0.45

Tested by

no test coverage detected