Class CompactableUtils
- java.lang.Object
-
- org.apache.accumulo.tserver.tablet.CompactableUtils
-
public class CompactableUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description CompactableUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TabletFile
computeCompactionFileDest(TabletFile tmpFile)
static Set<StoredTabletFile>
findChopFiles(KeyExtent extent, Map<StoredTabletFile,Pair<Key,Key>> firstAndLastKeys, Collection<StoredTabletFile> allFiles)
static MajorCompactionReason
from(CompactionKind ck)
static Map<StoredTabletFile,Pair<Key,Key>>
getFirstAndLastKeys(Tablet tablet, Set<StoredTabletFile> allFiles)
static CompactableImpl.CompactionHelper
getHelper(CompactionKind kind, Tablet tablet, Long compactionId, CompactionConfig compactionConfig)
static Map<String,String>
getOverrides(CompactionKind kind, Tablet tablet, CompactableImpl.CompactionHelper driver, Set<CompactableFile> files)
-
-
-
Method Detail
-
getFirstAndLastKeys
public static Map<StoredTabletFile,Pair<Key,Key>> getFirstAndLastKeys(Tablet tablet, Set<StoredTabletFile> allFiles) throws IOException
- Throws:
IOException
-
findChopFiles
public static Set<StoredTabletFile> findChopFiles(KeyExtent extent, Map<StoredTabletFile,Pair<Key,Key>> firstAndLastKeys, Collection<StoredTabletFile> allFiles)
-
getHelper
public static CompactableImpl.CompactionHelper getHelper(CompactionKind kind, Tablet tablet, Long compactionId, CompactionConfig compactionConfig)
-
getOverrides
public static Map<String,String> getOverrides(CompactionKind kind, Tablet tablet, CompactableImpl.CompactionHelper driver, Set<CompactableFile> files)
-
from
public static MajorCompactionReason from(CompactionKind ck)
-
computeCompactionFileDest
public static TabletFile computeCompactionFileDest(TabletFile tmpFile)
-
-