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

Method getOSClass

core/src/main/java/io/questdb/Telemetry.java:254–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252 }
253
254 private static short getOSClass() {
255 if (Os.isLinux()) { // -10 - Linux
256 return TelemetryEvent.SYSTEM_OS_CLASS_BASE;
257 } else if (Os.isOSX()) { // -11 - OS X
258 return TelemetryEvent.SYSTEM_OS_CLASS_BASE - 1;
259 } else if (Os.isWindows()) { // -12 - Windows
260 return TelemetryEvent.SYSTEM_OS_CLASS_BASE - 2;
261 }
262 // -13 - BSD
263 return TelemetryEvent.SYSTEM_OS_CLASS_BASE - 3;
264 }
265
266 private static short getTableCountClass(CairoEngine engine) {
267 final long tableCount = engine.getTableTokenCount(false);

Callers 1

initMethod · 0.95

Calls 3

isLinuxMethod · 0.95
isOSXMethod · 0.95
isWindowsMethod · 0.95

Tested by

no test coverage detected