/** * Clone this reader with the provided start and open reason, and set the clone as replacement. * * @param newFirst the first key for the replacement (which can be different from the original due to the pre-emptive * opening of compaction results). * @param reason the {@code OpenReason} for the replacement. * * @return the cloned reader. That reader is set as a replacement by the method. */ private SSTableReader cloneAndReplace(DecoratedKey newFirst, OpenReason reason) { return cloneAndReplace(newFirst, reason, indexSummary.sharedCopy()); }
/** * Clone this reader with the provided start and open reason, and set the clone as replacement. * * @param newFirst the first key for the replacement (which can be different from the original due to the pre-emptive * opening of compaction results). * @param reason the {@code OpenReason} for the replacement. * * @return the cloned reader. That reader is set as a replacement by the method. */ private SSTableReader cloneAndReplace(DecoratedKey newFirst, OpenReason reason) { return cloneAndReplace(newFirst, reason, indexSummary.sharedCopy()); }
/** * Clone this reader with the provided start and open reason, and set the clone as replacement. * * @param newFirst the first key for the replacement (which can be different from the original due to the pre-emptive * opening of compaction results). * @param reason the {@code OpenReason} for the replacement. * * @return the cloned reader. That reader is set as a replacement by the method. */ private SSTableReader cloneAndReplace(DecoratedKey newFirst, OpenReason reason) { return cloneAndReplace(newFirst, reason, indexSummary.sharedCopy()); }
/** * Clone this reader with the provided start and open reason, and set the clone as replacement. * * @param newFirst the first key for the replacement (which can be different from the original due to the pre-emptive * opening of compaction results). * @param reason the {@code OpenReason} for the replacement. * * @return the cloned reader. That reader is set as a replacement by the method. */ private SSTableReader cloneAndReplace(DecoratedKey newFirst, OpenReason reason) { return cloneAndReplace(newFirst, reason, indexSummary.sharedCopy()); }
/** * Clone this reader with the provided start and open reason, and set the clone as replacement. * * @param newFirst the first key for the replacement (which can be different from the original due to the pre-emptive * opening of compaction results). * @param reason the {@code OpenReason} for the replacement. * * @return the cloned reader. That reader is set as a replacement by the method. */ private SSTableReader cloneAndReplace(DecoratedKey newFirst, OpenReason reason) { return cloneAndReplace(newFirst, reason, indexSummary.sharedCopy()); }