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

Method get

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

Returns a value. @param key key @param name name of store @param info input info @param qc query context @return value or empty sequence @throws QueryException query exception

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

Source from the content-addressed store, hash-verified

69 * @throws QueryException query exception
70 */
71 public synchronized Value get(final String key, final String name, final InputInfo info,
72 final QueryContext qc) throws QueryException {
73 final Store store = get(name, false, info, qc);
74 if(store != null) {
75 final Value value = store.map.get(key);
76 if(value != null) return value;
77 }
78 return Empty.VALUE;
79 }
80
81 /**
82 * Stores a value.

Callers 2

keysMethod · 0.95
putMethod · 0.95

Calls 5

storeFileMethod · 0.95
readStoreMethod · 0.95
getMethod · 0.65
existsMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected