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

Method next

basex-core/src/main/java/org/basex/api/client/Query.java:94–102  ·  view source on GitHub ↗

Returns the next item of the query as string. @return string or null @throws IOException I/O exception

()

Source from the content-addressed store, hash-verified

92 * @throws IOException I/O exception
93 */
94 public final String next() throws IOException {
95 if(more()) {
96 final byte[] item = cache.get(pos);
97 cache.set(pos++, null);
98 if(out == null) return Token.string(item);
99 out.write(item);
100 }
101 return null;
102 }
103
104 /**
105 * Returns the XQuery type of the current item (must be called after {@link #next()}).

Callers 7

query2Method · 0.95
queryNullBinaryMethod · 0.95
queryEmptyBinaryMethod · 0.95
queryEmptyStringMethod · 0.95
queryBinaryMethod · 0.95
queryEntitiesMethod · 0.95
queryJSONMethod · 0.95

Calls 5

moreMethod · 0.95
stringMethod · 0.95
getMethod · 0.65
setMethod · 0.65
writeMethod · 0.45

Tested by 7

query2Method · 0.76
queryNullBinaryMethod · 0.76
queryEmptyBinaryMethod · 0.76
queryEmptyStringMethod · 0.76
queryBinaryMethod · 0.76
queryEntitiesMethod · 0.76
queryJSONMethod · 0.76