public class CompactionState extends Object
Constructor and Description |
---|
CompactionState(org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment env,
org.apache.hadoop.hbase.TableName stateTable) |
Modifier and Type | Method and Description |
---|---|
void |
persist()
Persists the transaction state recorded by
record(CompactionRequest, TransactionVisibilityState) . |
void |
record(org.apache.hadoop.hbase.regionserver.compactions.CompactionRequest request,
TransactionVisibilityState snapshot)
Records the transaction state used for a compaction.
|
public CompactionState(org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment env, org.apache.hadoop.hbase.TableName stateTable)
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.Copyright © 2016 The Apache Software Foundation. All rights reserved.