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

Method next

basex-core/src/main/java/org/basex/index/IndexTree.java:135–150  ·  view source on GitHub ↗

Returns the next pointer. @return next pointer

()

Source from the content-addressed store, hash-verified

133 * @return next pointer
134 */
135 public final int next() {
136 /* Last iterator node. */
137 final int ln = cn;
138 if(right(cn) == -1) {
139 int t = cn;
140 cn = parent(cn);
141 while(cn != -1 && t == right(cn)) {
142 t = cn;
143 cn = parent(cn);
144 }
145 } else {
146 cn = right(cn);
147 while(left(cn) != -1) cn = left(cn);
148 }
149 return ln;
150 }
151
152 // PRIVATE METHODS ==============================================================================
153

Callers

nothing calls this directly

Calls 3

rightMethod · 0.95
parentMethod · 0.95
leftMethod · 0.95

Tested by

no test coverage detected