Java Code Examples for org.apache.hadoop.hbase.regionserver.ScanType#COMPACT_RETAIN_DELETES
The following examples show how to use
org.apache.hadoop.hbase.regionserver.ScanType#COMPACT_RETAIN_DELETES .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CompactionScanQueryMatcher.java From hbase with Apache License 2.0 | 5 votes |
public static CompactionScanQueryMatcher create(ScanInfo scanInfo, ScanType scanType, long readPointToUse, long earliestPutTs, long oldestUnexpiredTS, long now, byte[] dropDeletesFromRow, byte[] dropDeletesToRow, RegionCoprocessorHost regionCoprocessorHost) throws IOException { Pair<DeleteTracker, ColumnTracker> trackers = getTrackers(regionCoprocessorHost, null, scanInfo,oldestUnexpiredTS, null); DeleteTracker deleteTracker = trackers.getFirst(); ColumnTracker columnTracker = trackers.getSecond(); if (dropDeletesFromRow == null) { if (scanType == ScanType.COMPACT_RETAIN_DELETES) { if (scanInfo.isNewVersionBehavior()) { return new IncludeAllCompactionQueryMatcher(scanInfo, deleteTracker, columnTracker, readPointToUse, oldestUnexpiredTS, now); } else { return new MinorCompactionScanQueryMatcher(scanInfo, deleteTracker, columnTracker, readPointToUse, oldestUnexpiredTS, now); } } else { return new MajorCompactionScanQueryMatcher(scanInfo, deleteTracker, columnTracker, readPointToUse, earliestPutTs, oldestUnexpiredTS, now); } } else { return new StripeCompactionScanQueryMatcher(scanInfo, deleteTracker, columnTracker, readPointToUse, earliestPutTs, oldestUnexpiredTS, now, dropDeletesFromRow, dropDeletesToRow); } }
Example 2
Source File: StripeCompactor.java From hbase with Apache License 2.0 | 5 votes |
@Override public ScanType getScanType(CompactionRequestImpl request) { // If majorRangeFromRow and majorRangeToRow are not null, then we will not use the return // value to create InternalScanner. See the createScanner method below. The return value is // also used when calling coprocessor hooks. return ScanType.COMPACT_RETAIN_DELETES; }