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

Method isNull

core/src/main/java/io/questdb/std/Numbers.java:1046–1048  ·  view source on GitHub ↗

Checks double value for NULL in database sense. NULL is anything that is not "finite". In this sense the return value is directly opposite of the return value of #isFinite(double) @param value to check @return true if value is "infinite", which includes Double#isNaN(double), positiv

(double value)

Source from the content-addressed store, hash-verified

1044 * infinities that arise from division by 0.
1045 */
1046 public static boolean isNull(double value) {
1047 return (Double.doubleToRawLongBits(value) & EXP_BIT_MASK) == EXP_BIT_MASK;
1048 }
1049
1050 public static boolean isNull(float value) {
1051 return Float.isNaN(value) || Float.isInfinite(value);

Callers 15

writeArrayContentMethod · 0.95
testAllNullMethod · 0.95
testAllNullMethod · 0.95
testAllNullMethod · 0.95
testAllNullMethod · 0.95
testFirstNullMethod · 0.95
testAllNullMethod · 0.95
testAllNullMethod · 0.95
testAllNullMethod · 0.95
testFirstNullMethod · 0.95
getDoubleMethod · 0.95
getFloatMethod · 0.95

Calls

no outgoing calls

Tested by 13

writeArrayContentMethod · 0.76
testAllNullMethod · 0.76
testAllNullMethod · 0.76
testAllNullMethod · 0.76
testAllNullMethod · 0.76
testFirstNullMethod · 0.76
testAllNullMethod · 0.76
testAllNullMethod · 0.76
testAllNullMethod · 0.76
testFirstNullMethod · 0.76
getDoubleMethod · 0.76
getFloatMethod · 0.76