@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public interface ScanOptions
Changing max versions and TTL are usually safe even for flush/compaction, so here we provide a
way to do it for you. If you want to do other complicated stuffs such as filtering, please wrap
the InternalScanner
in the preCompact
and preFlush
methods in
RegionObserver
.
For user scans, we also provide this class as a parameter in the preStoreScannerOpen
method in RegionObserver
. You can use it to change
the inherent properties for a Store. For example, even if you use Scan.readAllVersions
,
you still can not read two versions if the max versions property of the Store is one. You need to
set the max versions to a value greater than two in preStoreScannerOpen
.
RegionObserver.preFlushScannerOpen(org.apache.hadoop.hbase.coprocessor.ObserverContext,
Store, ScanOptions, FlushLifeCycleTracker)
,
RegionObserver.preCompactScannerOpen(org.apache.hadoop.hbase.coprocessor.ObserverContext,
Store, ScanType, ScanOptions,
org.apache.hadoop.hbase.regionserver.compactions.CompactionLifeCycleTracker,
org.apache.hadoop.hbase.regionserver.compactions.CompactionRequest)
,
RegionObserver.preStoreScannerOpen(org.apache.hadoop.hbase.coprocessor.ObserverContext,
Store, ScanOptions)
Modifier and Type | Method and Description |
---|---|
KeepDeletedCells |
getKeepDeletedCells() |
int |
getMaxVersions() |
long |
getTTL() |
default void |
readAllVersions() |
void |
setKeepDeletedCells(KeepDeletedCells keepDeletedCells) |
void |
setMaxVersions(int maxVersions) |
void |
setTTL(long ttl) |
int getMaxVersions()
void setMaxVersions(int maxVersions)
default void readAllVersions()
long getTTL()
void setTTL(long ttl)
void setKeepDeletedCells(KeepDeletedCells keepDeletedCells)
KeepDeletedCells getKeepDeletedCells()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.