Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # dev >> question about how to add a new field in matching in ClusterStatusProtos:ServerLoad


Copy link to this message
-
question about how to add a new field in matching in ClusterStatusProtos:ServerLoad
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