public final class CompactorFactory extends Object
QueryCompactor.| Modifier and Type | Method and Description |
|---|---|
CompactorPipeline |
getCompactorPipeline(org.apache.hadoop.hive.metastore.api.Table table,
HiveConf configuration,
CompactionInfo compactionInfo,
IMetaStoreClient msc)
Get an instance of
Compactor. |
public CompactorPipeline getCompactorPipeline(org.apache.hadoop.hive.metastore.api.Table table, HiveConf configuration, CompactionInfo compactionInfo, IMetaStoreClient msc) throws HiveException
Compactor. At the moment the following implementors can be fetched:
MajorQueryCompactor - handles query based major compaction
MinorQueryCompactor - handles query based minor compaction
MmMajorQueryCompactor - handles query based major compaction for micro-managed tables
MmMinorQueryCompactor - handles query based minor compaction for micro-managed tables
MRCompactor - handles MR based minor, major, or rebalance compaction
RebalanceQueryCompactor - handles query based rebalance compaction
msc - The IMetaStoreClient instance is used only by the MRCompactor.table - the table, on which the compaction should be running, must be not null.configuration - the hive configuration, must be not null.compactionInfo - provides insight about the type of compaction, must be not null.QueryCompactor or null.HiveExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.