i2bplustree
Version:
A package to implement the Improved Interval B+ tree, in TypeScript
22 lines (21 loc) • 690 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const internal_1 = require("./internal");
/**
* Interval that stores other Intervals.
* Used to store the original Intervals when data splits occur.
*/
class CompoundInterval extends internal_1.Interval {
constructor(val1, val2, originalInterval) {
super(val1, val2);
this.originalInterval = originalInterval;
}
equals(int) {
return this.upperBound == int.getUpperBound() &&
this.lowerBound == int.getLowerBound();
}
getOriginalInterval() {
return this.originalInterval.getOriginalInterval();
}
}
exports.CompoundInterval = CompoundInterval;
;