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

Method current

basex-core/src/main/java/org/basex/core/Context.java:209–213  ·  view source on GitHub ↗

Returns the current node context. @return node set, or null if no database is opened

()

Source from the content-addressed store, hash-verified

207 * @return node set, or {@code null} if no database is opened
208 */
209 public DBNodes current() {
210 if(data == null) return null;
211 if(current != null) return current;
212 return new DBNodes(data, true, data.resources.docs().toArray());
213 }
214
215 /**
216 * Sets the current node context. Discards the input if it contains all document

Callers 15

executeMethod · 0.95
contextMethod · 0.95
refreshMarkMethod · 0.95
stringMethod · 0.45
commandMethod · 0.45
nameMethod · 0.45
keyMethod · 0.45
numberMethod · 0.45
eocMethod · 0.45
runMethod · 0.45
optimizeMethod · 0.45
namedRecordTypeDeclMethod · 0.45

Calls 3

discardDocsMethod · 0.80
toArrayMethod · 0.45
docsMethod · 0.45

Tested by

no test coverage detected