MCPcopy Index your code
hub / github.com/questdb/questdb / find

Method find

core/src/main/java/io/questdb/log/LogFactory.java:694–711  ·  view source on GitHub ↗
(CharSequence key)

Source from the content-addressed store, hash-verified

692 }
693
694 private ScopeConfiguration find(CharSequence key) {
695 ReadOnlyObjList<CharSequence> keys = scopeConfigMap.keys();
696 CharSequence k = null;
697
698 for (int i = 0, n = keys.size(); i < n; i++) {
699 CharSequence s = keys.getQuick(i);
700 if (Chars.startsWith(key, s)) {
701 k = s;
702 break;
703 }
704 }
705
706 if (k == null) {
707 return null;
708 }
709
710 return scopeConfigMap.get(k);
711 }
712
713 private void haltThread() {
714 if (running.compareAndSet(true, false)) {

Callers 1

createMethod · 0.95

Calls 5

startsWithMethod · 0.95
sizeMethod · 0.65
getQuickMethod · 0.65
getMethod · 0.65
keysMethod · 0.45

Tested by

no test coverage detected