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

Method insert

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

Insert a new node into the data array, growing the array as necessary. @return Returns the position of the new node.

(int left, int right, boolean isRed)

Source from the content-addressed store, hash-verified

50 * @return Returns the position of the new node.
51 */
52 private int insert(int left, int right, boolean isRed) {
53 int position = size;
54 size += 1;
55 setLeft(position, left, isRed);
56 setRight(position, right);
57 return position;
58 }
59
60 /**
61 * Compare the value at the given position to the new value.

Callers 1

addMethod · 0.95

Calls 2

setLeftMethod · 0.95
setRightMethod · 0.95

Tested by

no test coverage detected