Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 277DD10D5F for ; Thu, 5 Sep 2013 22:45:17 +0000 (UTC) Received: (qmail 15115 invoked by uid 500); 5 Sep 2013 22:45:17 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 15045 invoked by uid 500); 5 Sep 2013 22:45:17 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 15038 invoked by uid 99); 5 Sep 2013 22:45:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Sep 2013 22:45:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Sep 2013 22:45:14 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id AE93B23888D7; Thu, 5 Sep 2013 22:44:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1520449 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/protobuf/ReplicationProtbufUtil.java Date: Thu, 05 Sep 2013 22:44:53 -0000 To: commits@hbase.apache.org From: jmhsieh@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130905224453.AE93B23888D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jmhsieh Date: Thu Sep 5 22:44:53 2013 New Revision: 1520449 URL: http://svn.apache.org/r1520449 Log: HBASE-9443 ReplicationProtobufUtil.HLogEntries needs to be removed (Roman Shaposhnik) Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/protobuf/ReplicationProtbufUtil.java Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/protobuf/ReplicationProtbufUtil.java URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/protobuf/ReplicationProtbufUtil.java?rev=1520449&r1=1520448&r2=1520449&view=diff ============================================================================== --- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/protobuf/ReplicationProtbufUtil.java (original) +++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/protobuf/ReplicationProtbufUtil.java Thu Sep 5 22:44:53 2013 @@ -51,36 +51,6 @@ import com.google.protobuf.ServiceExcept @InterfaceAudience.Private public class ReplicationProtbufUtil { /** - * Get the HLog entries from a list of protocol buffer WALEntry - * - * @param protoList the list of protocol buffer WALEntry - * @return an array of HLog entries - */ - public static HLog.Entry[] - toHLogEntries(final List protoList) throws IOException { - List entries = new ArrayList(); - for (AdminProtos.WALEntry entry: protoList) { - WALProtos.WALKey walKey = entry.getKey(); - HLogKey key = new HLogKey(walKey); - WALEdit edit = new WALEdit(); - for (ByteString keyValue: entry.getKeyValueBytesList()) { - edit.add(new KeyValue(keyValue.toByteArray())); - } - if (walKey.getScopesCount() > 0) { - TreeMap scopes = - new TreeMap(Bytes.BYTES_COMPARATOR); - for (WALProtos.FamilyScope scope: walKey.getScopesList()) { - scopes.put(scope.getFamily().toByteArray(), - Integer.valueOf(scope.getScopeType().ordinal())); - } - key.setScopes(scopes); - } - entries.add(new HLog.Entry(key, edit)); - } - return entries.toArray(new HLog.Entry[entries.size()]); - } - - /** * A helper to replicate a list of HLog entries using admin protocol. * * @param admin