Hi folks,

As I'm writing the Apache Beam Kudu connector I have a need to serialize
Operation instances in my current design.

Unless I'm missing something all the kudu protobuf SerDe seems to be hidden
- e.g.

https://github.com/apache/kudu/blob/master/java/kudu-client/src/main/java/org/apache/kudu/client/Operation.java#L226

Before I go untangling this and copying out code or writing an alternative
protobuf-based SerDe I thought I'd ask if a) anyone knew of any utilities
to serialize the Operation instances outside of the kudu client, or b) if
there would be any interest in exposing that capability from the Kudu
client?

The later would be similar to the HBase ProtobufUtil toMutation() methods
(e.g.):
https://hbase.apache.org/1.2/apidocs/org/apache/hadoop/hbase/protobuf/ProtobufUtil.html#toMutation-org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType-org.apache.hadoop.hbase.client.Mutation-

I'd be happy to explore it and offer a PR if it was of interest to Kudu.

Thanks,
Tim

Reply via email to