public class CompactionState extends Object
Constructor and Description |
---|
CompactionState(org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment env,
org.apache.hadoop.hbase.TableName stateTable,
long pruneFlushInterval) |
Modifier and Type | Method and Description |
---|---|
void |
persist()
Persists the transaction state recorded by
record(CompactionRequest, TransactionVisibilityState) . |
void |
persistRegionEmpty(long time)
Persist that the given region is empty at the given time
|
void |
record(org.apache.hadoop.hbase.regionserver.compactions.CompactionRequest request,
TransactionVisibilityState snapshot)
Records the transaction state used for a compaction.
|
void |
stop()
Releases the usage
PruneUpperBoundWriter . |
public CompactionState(org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment env, org.apache.hadoop.hbase.TableName stateTable, long pruneFlushInterval)
public void record(org.apache.hadoop.hbase.regionserver.compactions.CompactionRequest request, @Nullable TransactionVisibilityState snapshot)
request
- CompactionRequest
for the compactionsnapshot
- transaction state that will be used for the compactionpublic void persist()
record(CompactionRequest, TransactionVisibilityState)
.
This method is called after the compaction has successfully completed.public void persistRegionEmpty(long time)
time
- time in millisecondspublic void stop()
PruneUpperBoundWriter
.Copyright © 2017 The Apache Software Foundation. All rights reserved.