MCPcopy Index your code
hub / github.com/ShiftLeftSecurity/overflowdb / get

Method get

core/src/main/java/overflowdb/NodeRef.java:80–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 }
79
80 public final N get() {
81 final N ref = node;
82 if (ref != null) {
83 /* Node is in memory, just return it */
84 return ref;
85 } else {
86 /* read Node from disk */
87 try {
88 return getSynchronized();
89 } catch (Exception e) {
90 throw new RuntimeException(e);
91 }
92 }
93 }
94
95 /** deserialize node from disk, synchronized to ensure this only happens once in a multi-threaded setup */
96 private final synchronized N getSynchronized() throws IOException {

Callers 15

removeImplMethod · 0.95
addEdgeImplMethod · 0.95
addEdgeSilentImplMethod · 0.95
propertiesMapMethod · 0.95
propertyMethod · 0.95
propertyOptionMethod · 0.95
setPropertyImplMethod · 0.95
propertyKeysMethod · 0.95
removePropertyImplMethod · 0.95
outMethod · 0.95
inMethod · 0.95
bothMethod · 0.95

Calls 1

getSynchronizedMethod · 0.95

Tested by 15

stringPropertyMethod · 0.64
nameMethod · 0.64
songTypeMethod · 0.64
performancesMethod · 0.64
nameMethod · 0.64
stringPropertyMethod · 0.64
intPropertyMethod · 0.64
stringListPropertyMethod · 0.64
intListPropertyMethod · 0.64
funkyListMethod · 0.64
containedTestNodeMethod · 0.64
elementCountsMethod · 0.64