@InterfaceAudience.Private public class WALEditsReplaySink extends Object
This class uses the native HBase client in order to replay WAL entries.
| 构造器和说明 |
|---|
WALEditsReplaySink(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
HConnection conn)
Create a sink for WAL log entries replay
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getStats()
Get a string representation of this sink's metrics
|
void |
replayEntries(List<Pair<HRegionLocation,WAL.Entry>> entries)
Replay an array of actions of the same region directly into the newly assigned Region Server
|
public WALEditsReplaySink(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
HConnection conn)
throws IOException
conf - tableName - conn - IOExceptionpublic void replayEntries(List<Pair<HRegionLocation,WAL.Entry>> entries) throws IOException
entries - IOExceptionpublic String getStats()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.