You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by je...@apache.org on 2013/11/28 02:02:06 UTC
svn commit: r1546249 -
/hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
Author: jeffreyz
Date: Thu Nov 28 01:02:06 2013
New Revision: 1546249
URL: http://svn.apache.org/r1546249
Log:
hbase-10053: ProtobufUtil#toMutationNoData interface change causes downstream project build break
Modified:
hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
Modified: hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java?rev=1546249&r1=1546248&r2=1546249&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java (original)
+++ hbase/branches/0.96/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java Thu Nov 28 01:02:06 2013
@@ -1065,10 +1065,11 @@ public final class ProtobufUtil {
}
/**
- * Create a protocol buffer MutationProto based on a client Mutation. Does NOT include data.
+ * Create a protocol buffer MutationProto based on a client Mutation. Does NOT include data.
* Understanding is that the Cell will be transported other than via protobuf.
* @param type
* @param mutation
+ * @param builder
* @return a protobuf'd Mutation
* @throws IOException
*/
@@ -1081,6 +1082,20 @@ public final class ProtobufUtil {
}
/**
+ * Create a protocol buffer MutationProto based on a client Mutation. Does NOT include data.
+ * Understanding is that the Cell will be transported other than via protobuf.
+ * @param type
+ * @param mutation
+ * @return a protobuf'd Mutation
+ * @throws IOException
+ */
+ public static MutationProto toMutationNoData(final MutationType type, final Mutation mutation)
+ throws IOException {
+ MutationProto.Builder builder = MutationProto.newBuilder();
+ return toMutationNoData(type, mutation, builder);
+ }
+
+ /**
* Code shared by {@link #toMutation(MutationType, Mutation)} and
* {@link #toMutationNoData(MutationType, Mutation)}
* @param type