This is generated protobuf code. You just need to edit .proto file and generate code; see ./hbase-protocol/README.txt
On Mon, Dec 16, 2013 at 6:13 PM, Demai Ni <[email protected]> wrote: > hi, folks, > > I am reading the code inside ClusterStatusProtos:ServerLoad, and couldn't > figure out some simple logic when trying to add a new field. Can someone > enlighten me please? > > ----------------------------------------------- > I use the trunk version for @line > @4517~4580, is there a relationship between the tag value and the bitField > value? > switch (tag) { > ... > . case *64*: { > bitField0_ |=* 0x00000020*; > reportEndTime_ = input.readUInt64(); > break; > } > .... > case *72*: { > bitField0_ |= *0x00000040*; > infoServerPort_ = input.readUInt32(); > break; > } > @4993: at the write, the tag is *9*, but from the read above it is *72*? > if (((bitField0_ & 0x00000040) == 0x00000040)) { > output.writeUInt32(*9*, infoServerPort_); > -------------------------------------------------- > > so if I'd like to add a new field(say a String), what kind of tag value I > should use? many thanks > > Demai > -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
