Re: How to write a protocol buffer message which correspond to java.util.Map

2009-08-26 Thread rajesh
. On Wed, Aug 26, 2009 at 7:13 PM, rajesh poorv...@gmail.com wrote: Hi All,          Iam kinda new to using protocol buffers, so this  could be a dumb question. I am curious as to how or what should be the syntax of the protocol buffer message for Map implementations in java. I looked

Re: How to write a protocol buffer message which correspond to java.util.Map

2009-08-26 Thread rajesh
/html/rfc3339) and use a string? -DeWitt 2009/8/26 rajesh poorv...@gmail.com -Thanks On Aug 26, 2:46 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) evlogime...@gmail.com wrote: Protocol buffers do not have a protobuf map equivalent. What is usually done is to put 2 repeated fields

Is there a maven mojo to create a protocol buffer file

2009-08-27 Thread rajesh
Hi All, Right now I use the following command line command as given in the documentation to create proto files . The command is : protoc -I=$src --java_out=$dest $src/file Is thete a maven mojo out there which I can use to do the same. Where would I find the relavant

Performance Observations using protocol and java serialization

2009-09-09 Thread rajesh
Hi All, I ran some performance tests to compare the performance for serializing-persisting-retrieving-desirializing of my POJOs and was really surprised to see that java-serialization was performing better than protobuf-serialization. Iam enclosing my proto file based on which Iam

Re: Performance Observations using protocol and java serialization

2009-09-10 Thread rajesh
without too much trouble.  Please also include your results with the code so that we don't have to actually run it.  Also, have your benchmark measure the sizes of the encoded messages. On Thu, Sep 10, 2009 at 7:55 AM, rajesh poorv...@gmail.com wrote: Hi Kent,             Thanks for the quick

Maven plugin to create proto files

2009-09-30 Thread rajesh
Hi, I was searching if there are any existing plugins which will , create proto files from the message files given the location and stumbled across this . http://groups.google.com/group/protobuf/browse_thread/thread/e3982ec04d23a0e3 What is the outcome of this discussion, is the plugin

[protobuf] Debug assertion failed while attempting to set an object

2013-08-28 Thread Rajesh Khan
https://lh4.googleusercontent.com/-Am9nM_zm1i0/Uh4zrDQJPlI/AAk/utPcxdnVUIg/s1600/buf.png I currently have something like this. I get an error when i attempt to store data in a message that has multiple message types in it. message MyTypeA { optional string Account = 1 ; optional string

[protobuf] Error while attempting to assign a message type as filed in a message type.

2013-08-28 Thread Rajesh Khan
I have something like this in my proto file message MyTypeA { optional string Account = 1 ; optional string Name = 2 ; } message MyTypeB { optional int32 position = 1; } message MyCollection { optional MyTypeA= 1; optional MyTypeB pos = 2; } Now I am using it as *void SomeMethod(MyTypeA

[protobuf] Using SortedList/SortedMap in for Repeated Message - C++

2014-09-26 Thread Rajesh Bhardwaj
Hello, I have the following two messages - message KeyValuePair_Int32_ABC { optional int32 Key = 1; optional BCD Value = 2; } message XYZ { repeated KeyValuePair_Int32_ABC = 1; optional bool IsPersisted =2; optional bool IsChanged =3; optional bytes KeyAvro =4; optional