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

Method setLeft

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

Set the left field of the given position. Note that we are storing the node color in the low bit of the left pointer.

(int position, int left)

Source from the content-addressed store, hash-verified

104 * Note that we are storing the node color in the low bit of the left pointer.
105 */
106 private void setLeft(int position, int left) {
107 int offset = position * ELEMENT_SIZE + LEFT_OFFSET;
108 data.set(offset, (left << 1) | (data.get(offset) & 1));
109 }
110
111 /**
112 * Set the left field of the given position.

Callers 2

insertMethod · 0.95
addMethod · 0.95

Calls 2

setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected