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

Method setRed

java/core/src/java/org/apache/orc/impl/RedBlackTree.java:79–86  ·  view source on GitHub ↗

Set the red bit true or false.

(int position, boolean isRed)

Source from the content-addressed store, hash-verified

77 * Set the red bit true or false.
78 */
79 private void setRed(int position, boolean isRed) {
80 int offset = position * ELEMENT_SIZE + LEFT_OFFSET;
81 if (isRed) {
82 data.set(offset, data.get(offset) | 1);
83 } else {
84 data.set(offset, data.get(offset) & ~1);
85 }
86 }
87
88 /**
89 * Get the left field of the given position.

Callers 1

addMethod · 0.95

Calls 2

setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected