org.apache.hadoop.hbase.protobuf
Class ReplicationProtbufUtil
java.lang.Object
org.apache.hadoop.hbase.protobuf.ReplicationProtbufUtil
@InterfaceAudience.Private
public class ReplicationProtbufUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplicationProtbufUtil
public ReplicationProtbufUtil()
replicateWALEntry
public static void replicateWALEntry(AdminProtos.AdminService.BlockingInterface admin,
HLog.Entry[] entries)
throws IOException
- A helper to replicate a list of HLog entries using admin protocol.
- Parameters:
admin
- entries
-
- Throws:
IOException
buildReplicateWALEntryRequest
public static Pair<AdminProtos.ReplicateWALEntryRequest,CellScanner> buildReplicateWALEntryRequest(HLog.Entry[] entries)
- Create a new ReplicateWALEntryRequest from a list of HLog entries
- Parameters:
entries
- the HLog entries to be replicated
- Returns:
- a pair of ReplicateWALEntryRequest and a CellScanner over all the WALEdit values
found.
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.