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

Method atomIter

basex-core/src/main/java/org/basex/query/expr/Expr.java:100–107  ·  view source on GitHub ↗

Evaluates the expression and returns an iterator on the resulting, atomized items. @param qc query context @param ii input info (can be null; required for those Value instances that have no input info) @return iterator @throws QueryException query exception

(final QueryContext qc, final InputInfo ii)

Source from the content-addressed store, hash-verified

98 * @throws QueryException query exception
99 */
100 public Iter atomIter(final QueryContext qc, final InputInfo ii) throws QueryException {
101 final Iter iter = iter(qc);
102 final SeqType st = seqType();
103 if(st.type.instanceOf(BasicType.ANY_ATOMIC_TYPE)) return iter;
104 long size = iter.size();
105 if(size != -1 && st.mayBeWrapped()) size = -1;
106 return new AtomIter(iter, qc, ii, size);
107 }
108
109 /**
110 * Evaluates the expression and returns the resulting, atomized item,

Callers 15

minmaxMethod · 0.95
itemMethod · 0.95
sumMethod · 0.95
itemMethod · 0.45
testMethod · 0.45
testMethod · 0.45
testMethod · 0.45
compareMethod · 0.45
testMethod · 0.45
testMethod · 0.45
atomItemMethod · 0.45
testMethod · 0.45

Calls 5

iterMethod · 0.95
seqTypeMethod · 0.95
sizeMethod · 0.95
mayBeWrappedMethod · 0.95
instanceOfMethod · 0.65

Tested by

no test coverage detected