332333334335336337338339340341
} // validate the tree TreeRangeIterator ranges = mt.invalids(); for (TreeRange range : ranges) range.addHash(new RowHash(range.right, new byte[0])); assert null != mt.hash(new Range(tok(-1), tok(-1))) : "Could not hash tree " + mt; }
507508509510511512513514
} public RowHash computeNext() { if (tokens.hasNext()) return new RowHash(tokens.next(), DUMMY); return endOfData(); }
320321322323324325326327328329
} // validate the tree TreeRangeIterator ranges = mt.invalids(); for (TreeRange range : ranges) range.addHash(new RowHash(range.right, new byte[0])); assert mt.hash(new Range<>(tok(-1), tok(-1))) != null : "Could not hash tree " + mt; }
489490491492493494495496
328329330331332333334335336337
} // validate the tree TreeRangeIterator ranges = mt.invalids(); for (TreeRange range : ranges) range.addHash(new RowHash(range.right, new byte[0])); assert mt.hash(new Range(tok(-1), tok(-1))) != null : "Could not hash tree " + mt; }
503504505506507508509510
319320321322323324325326327328
} // validate the tree TreeRangeIterator ranges = mt.invalids(); for (TreeRange range : ranges) range.addHash(new RowHash(range.right, new byte[0], 0)); assert mt.hash(new Range<>(tok(-1), tok(-1))) != null : "Could not hash tree " + mt; }
488489490491492493494495
} public RowHash computeNext() { if (tokens.hasNext()) return new RowHash(tokens.next(), DUMMY, DUMMY.length); return endOfData(); }