private void shiftRight(BPTreePage left, BPTreePage right, int i) { if ( logging(log) ) { log(log, ">> shiftRight: this: %s", this) ; log(log, ">> shiftRight: left: %s", left) ; log(log, ">> shiftRight: right: %s", right) ; } Record r1 = records.get(i) ; Record r2 = left.shiftRight(right, r1) ; r2 = keyRecord(r2) ; this.records.set(i, r2) ; left.write() ; right.write() ; // Do later -- this.put(); if ( logging(log) ) { log(log, "<< shiftRight: this: %s", this) ; log(log, "<< shiftRight: left: %s", left) ; log(log, "<< shiftRight: right: %s", right) ; } }
private void shiftLeft(BPTreePage left, BPTreePage right, int i) { if ( logging(log) ) { log(log, ">> shiftLeft: this: %s", this) ; log(log, ">> shiftLeft: left: %s", left) ; log(log, ">> shiftLeft: right: %s", right) ; } Record r1 = records.get(i) ; Record r2 = left.shiftLeft(right, r1) ; r2 = keyRecord(r2) ; this.records.set(i, r2) ; left.write() ; right.write() ; // Do this later - this.put(); if ( logging(log) ) { log(log, "<< shiftLeft: this: %s", this) ; log(log, "<< shiftLeft: left: %s", left) ; log(log, "<< shiftLeft: right: %s", right) ; } }
private void shiftLeft(BPTreePage left, BPTreePage right, int i) { if ( logging(log) ) { log(log, ">> shiftLeft: this: %s", this) ; log(log, ">> shiftLeft: left: %s", left) ; log(log, ">> shiftLeft: right: %s", right) ; } Record r1 = records.get(i) ; Record r2 = left.shiftLeft(right, r1) ; r2 = keyRecord(r2) ; this.records.set(i, r2) ; left.write() ; right.write() ; // Do this later - this.put(); if ( logging(log) ) { log(log, "<< shiftLeft: this: %s", this) ; log(log, "<< shiftLeft: left: %s", left) ; log(log, "<< shiftLeft: right: %s", right) ; } }
private void shiftRight(BPTreePage left, BPTreePage right, int i) { if ( logging(log) ) { log(log, ">> shiftRight: this: %s", this) ; log(log, ">> shiftRight: left: %s", left) ; log(log, ">> shiftRight: right: %s", right) ; } Record r1 = records.get(i) ; Record r2 = left.shiftRight(right, r1) ; r2 = keyRecord(r2) ; this.records.set(i, r2) ; left.write() ; right.write() ; // Do later -- this.put(); if ( logging(log) ) { log(log, "<< shiftRight: this: %s", this) ; log(log, "<< shiftRight: left: %s", left) ; log(log, "<< shiftRight: right: %s", right) ; } }
records.set(x, keyRecord(mx)) ; this.write() ;
records.set(x, keyRecord(mx)) ; this.write() ;