MCPcopy Create free account
hub / github.com/apache/pig / roundToEight

Method roundToEight

src/org/apache/pig/data/SizeUtil.java:128–130  ·  view source on GitHub ↗

Memory size of objects are rounded to multiple of 8 bytes @param i @return i rounded to a equal of higher multiple of 8

(long i)

Source from the content-addressed store, hash-verified

126 * @return i rounded to a equal of higher multiple of 8
127 */
128 public static long roundToEight(long i) {
129 return 8 * ((i + 7) / 8); // integer division rounds the result down
130 }
131
132}

Callers 3

getMemorySizeMethod · 0.95
getMemorySizeMethod · 0.95
getPigObjMemSizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected