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

Method read

basex-core/src/main/java/org/basex/core/Stores.java:162–169  ·  view source on GitHub ↗

Reads a store from disk. @param name name of store @param qc query context @param info input info @throws QueryException query exception

(final String name, final InputInfo info, final QueryContext qc)

Source from the content-addressed store, hash-verified

160 * @throws QueryException query exception
161 */
162 public synchronized void read(final String name, final InputInfo info, final QueryContext qc)
163 throws QueryException {
164 if(storeFile(name).exists()) {
165 readStore(name, info, qc);
166 } else {
167 stores.remove(name);
168 }
169 }
170
171 /**
172 * Writes the current store to disk.

Callers 5

readStoreMethod · 0.95
resourceMethod · 0.95
readMethod · 0.95
readMethod · 0.95
readMethod · 0.95

Calls 13

storeFileMethod · 0.95
readStoreMethod · 0.95
typeMethod · 0.95
readMethod · 0.95
addMethod · 0.95
valueMethod · 0.95
readLongMethod · 0.80
readBoolMethod · 0.80
removeMethod · 0.65
invokeMethod · 0.65
existsMethod · 0.45
checkStopMethod · 0.45

Tested by

no test coverage detected