Class CustomizedScanInfoBuilder
java.lang.Object
org.apache.hadoop.hbase.regionserver.CustomizedScanInfoBuilder
- All Implemented Interfaces:
ScanOptions
Helper class for CP hooks to change max versions and TTL.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCustomizedScanInfoBuilder
(ScanInfo scanInfo) CustomizedScanInfoBuilder
(ScanInfo scanInfo, Scan scan) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
int
int
getScan()
Returns a copy of the Scan object.long
long
getTTL()
void
setKeepDeletedCells
(KeepDeletedCells keepDeletedCells) void
setMaxVersions
(int maxVersions) void
setMinVersions
(int minVersions) void
setTimeToPurgeDeletes
(long ttl) void
setTTL
(long ttl) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.regionserver.ScanOptions
readAllVersions
-
Field Details
-
scanInfo
-
maxVersions
-
ttl
-
keepDeletedCells
-
minVersions
-
timeToPurgeDeletes
-
scan
-
-
Constructor Details
-
CustomizedScanInfoBuilder
-
CustomizedScanInfoBuilder
-
-
Method Details
-
getMaxVersions
- Specified by:
getMaxVersions
in interfaceScanOptions
-
setMaxVersions
- Specified by:
setMaxVersions
in interfaceScanOptions
-
getTTL
- Specified by:
getTTL
in interfaceScanOptions
-
setTTL
- Specified by:
setTTL
in interfaceScanOptions
-
build
-
toString
-
setKeepDeletedCells
- Specified by:
setKeepDeletedCells
in interfaceScanOptions
-
getKeepDeletedCells
- Specified by:
getKeepDeletedCells
in interfaceScanOptions
-
getMinVersions
- Specified by:
getMinVersions
in interfaceScanOptions
-
setMinVersions
- Specified by:
setMinVersions
in interfaceScanOptions
-
getTimeToPurgeDeletes
- Specified by:
getTimeToPurgeDeletes
in interfaceScanOptions
-
setTimeToPurgeDeletes
- Specified by:
setTimeToPurgeDeletes
in interfaceScanOptions
-
getScan
Description copied from interface:ScanOptions
Returns a copy of the Scan object. Modifying it will have no effect.- Specified by:
getScan
in interfaceScanOptions
-