Interface CompactionRequest
- All Known Implementing Classes:
CompactionRequestImpl
,DateTieredCompactionRequest
Coprocessors use this interface to get details about compaction.
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends StoreFile>
getFiles()
Returns unmodifiable collection of StoreFiles in compactionint
Returns priority of compaction requestlong
Returns compaction request creation time in millisecondslong
getSize()
Returns total size of all StoreFiles in compactionboolean
Returnstrue
if major compaction or all files are compactedboolean
isMajor()
Returnstrue
if major compactionboolean
Returnstrue
if compaction is Off-peak
-
Method Details
-
getFiles
Collection<? extends StoreFile> getFiles()Returns unmodifiable collection of StoreFiles in compaction -
getSize
long getSize()Returns total size of all StoreFiles in compaction -
isAllFiles
boolean isAllFiles()Returnstrue
if major compaction or all files are compacted -
isMajor
boolean isMajor()Returnstrue
if major compaction -
getPriority
int getPriority()Returns priority of compaction request -
isOffPeak
boolean isOffPeak()Returnstrue
if compaction is Off-peak -
getSelectionTime
long getSelectionTime()Returns compaction request creation time in milliseconds
-