MCPcopy Create free account
hub / github.com/apache/orc / nextLong

Method nextLong

java/core/src/test/org/apache/orc/impl/TestBitPack.java:66–73  ·  view source on GitHub ↗
(Random rng, long n)

Source from the content-addressed store, hash-verified

64 }
65
66 private long nextLong(Random rng, long n) {
67 long bits, val;
68 do {
69 bits = (rng.nextLong() << 1) >>> 1;
70 val = bits % n;
71 } while (bits - val + (n - 1) < 0L);
72 return val;
73 }
74
75 private void runTest(int numBits) throws IOException {
76 long[] inp = new long[SIZE];

Callers 15

runTestMethod · 0.95
testJsonDumpMethod · 0.45
testDumpMethod · 0.45
testBloomFilterMethod · 0.45
testBloomFilter2Method · 0.45
testRecoverMethod · 0.45
setupMethod · 0.45
setupMethod · 0.45
createAcidORCFileMethod · 0.45
setupMethod · 0.45
testColumnProjectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected