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

Method deltaEncode

java/core/src/test/org/apache/orc/impl/TestBitPack.java:57–64  ·  view source on GitHub ↗
(long[] inp)

Source from the content-addressed store, hash-verified

55 }
56
57 private long[] deltaEncode(long[] inp) {
58 long[] output = new long[inp.length];
59 SerializationUtils utils = new SerializationUtils();
60 for (int i = 0; i < inp.length; i++) {
61 output[i] = utils.zigzagEncode(inp[i]);
62 }
63 return output;
64 }
65
66 private long nextLong(Random rng, long n) {
67 long bits, val;

Callers 1

runTestMethod · 0.95

Calls 1

zigzagEncodeMethod · 0.95

Tested by

no test coverage detected