@Override
public InternalScanner preCompact(
final ObserverContext<RegionCoprocessorEnvironment> e,
final Store store,
final InternalScanner scanner,
final ScanType scanType,
final CompactionRequest request) throws IOException {
if (opStore == null) {
return super.preCompact(e, store, scanner, scanType, request);
}
return super.preCompact(
e,
store,
wrapScannerWithOps(
e.getEnvironment().getRegionInfo().getTable(),
scanner,
null,
ServerOpScope.MAJOR_COMPACTION,
INTERNAL_SCANNER_FACTORY),
scanType,
request);
}