MCPcopy Create free account
hub / github.com/questdb/questdb / add

Method add

core/src/main/java/io/questdb/log/LogFactory.java:210–221  ·  view source on GitHub ↗
(final LogWriterConfig config)

Source from the content-addressed store, hash-verified

208 }
209
210 public synchronized void add(final LogWriterConfig config) {
211 assert !configured;
212 final int index = scopeConfigMap.keyIndex(config.getScope());
213 ScopeConfiguration scopeConf;
214 if (index > -1) {
215 scopeConfigMap.putAt(index, config.getScope(), scopeConf = new ScopeConfiguration(LogLevel.MAX));
216 scopeConfigs.add(scopeConf);
217 } else {
218 scopeConf = scopeConfigMap.valueAtQuick(index);
219 }
220 scopeConf.add(config);
221 }
222
223 public synchronized void bind() {
224 if (configured) {

Callers 3

testFlushJobsAndCloseMethod · 0.95

Calls 6

addMethod · 0.95
getScopeMethod · 0.80
addMethod · 0.65
keyIndexMethod · 0.45
putAtMethod · 0.45
valueAtQuickMethod · 0.45

Tested by 1

testFlushJobsAndCloseMethod · 0.76