Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/questdb/questdb
/ nextPositiveInt
Method
nextPositiveInt
core/src/main/java/io/questdb/std/Rnd.java:344–347 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
342
}
343
344
public
int
nextPositiveInt() {
345
int
n = (
int
) nextLong();
346
return
n > 0 ? n : (n == Integer.MIN_VALUE ? Integer.MAX_VALUE : -n);
347
}
348
349
public
long nextPositiveLong() {
350
long l = nextLong();
Callers
15
testWebConsolePathChangeUpdatesDefaultDependenciesFuzz
Method · 0.95
testLongBinaryBlockSearch
Method · 0.95
testLongSearch2
Method · 0.95
run
Method · 0.95
testRandomColumnAddedDeleted
Method · 0.95
testRandomColumnAddedDeleted
Method · 0.95
testChangeVarcharStringSymbol
Method · 0.95
passCount
Method · 0.95
testFactory_FullPartitionFrameCursorFactory
Method · 0.95
testFactory_IntervalPartitionFrameCursorFactory
Method · 0.95
testFuzz
Method · 0.95
testFuzzPartitionByNone
Method · 0.95
Calls
1
nextLong
Method · 0.95
Tested by
15
testWebConsolePathChangeUpdatesDefaultDependenciesFuzz
Method · 0.76
testLongBinaryBlockSearch
Method · 0.76
testLongSearch2
Method · 0.76
run
Method · 0.76
testRandomColumnAddedDeleted
Method · 0.76
testRandomColumnAddedDeleted
Method · 0.76
testChangeVarcharStringSymbol
Method · 0.76
passCount
Method · 0.76
testFactory_FullPartitionFrameCursorFactory
Method · 0.76
testFactory_IntervalPartitionFrameCursorFactory
Method · 0.76
testFuzz
Method · 0.76
testFuzzPartitionByNone
Method · 0.76