@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMemStoreLoad()) { hash = (37 * hash) + MEMSTORELOAD_FIELD_NUMBER; hash = (53 * hash) + getMemStoreLoad(); } if (hasHeapOccupancy()) { hash = (37 * hash) + HEAPOCCUPANCY_FIELD_NUMBER; hash = (53 * hash) + getHeapOccupancy(); } if (hasCompactionPressure()) { hash = (37 * hash) + COMPACTIONPRESSURE_FIELD_NUMBER; hash = (53 * hash) + getCompactionPressure(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public Builder clear() { super.clear(); index_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (resultBuilder_ == null) { result_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance(); } else { resultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (exceptionBuilder_ == null) { exception_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDefaultInstance(); } else { exceptionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (serviceResultBuilder_ == null) { serviceResult_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResult.getDefaultInstance(); } else { serviceResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (loadStatsBuilder_ == null) { loadStats_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats.getDefaultInstance(); } else { loadStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, memStoreLoad_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, heapOccupancy_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, compactionPressure_); } getUnknownFields().writeTo(output); }
if (hasLoadStats()) { result = result && getLoadStats() .equals(other.getLoadStats());
if (hasLoadStats()) { result = result && getLoadStats() .equals(other.getLoadStats());
if (hasLoadStats()) { result = result && getLoadStats() .equals(other.getLoadStats());
public Builder clear() { super.clear(); index_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (resultBuilder_ == null) { result_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance(); } else { resultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (exceptionBuilder_ == null) { exception_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDefaultInstance(); } else { exceptionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (serviceResultBuilder_ == null) { serviceResult_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResult.getDefaultInstance(); } else { serviceResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (loadStatsBuilder_ == null) { loadStats_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats.getDefaultInstance(); } else { loadStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; }
public Builder clear() { super.clear(); index_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (resultBuilder_ == null) { result_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance(); } else { resultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (exceptionBuilder_ == null) { exception_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDefaultInstance(); } else { exceptionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (serviceResultBuilder_ == null) { serviceResult_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResult.getDefaultInstance(); } else { serviceResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (loadStatsBuilder_ == null) { loadStats_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats.getDefaultInstance(); } else { loadStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; }
public Builder clear() { super.clear(); index_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (resultBuilder_ == null) { result_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance(); } else { resultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (exceptionBuilder_ == null) { exception_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDefaultInstance(); } else { exceptionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (serviceResultBuilder_ == null) { serviceResult_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResult.getDefaultInstance(); } else { serviceResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (loadStatsBuilder_ == null) { loadStats_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats.getDefaultInstance(); } else { loadStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats) obj; boolean result = true; result = result && (hasMemstoreLoad() == other.hasMemstoreLoad()); if (hasMemstoreLoad()) { result = result && (getMemstoreLoad() == other.getMemstoreLoad()); } result = result && (hasHeapOccupancy() == other.hasHeapOccupancy()); if (hasHeapOccupancy()) { result = result && (getHeapOccupancy() == other.getHeapOccupancy()); } result = result && (hasCompactionPressure() == other.hasCompactionPressure()); if (hasCompactionPressure()) { result = result && (getCompactionPressure() == other.getCompactionPressure()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats) obj; boolean result = true; result = result && (hasMemStoreLoad() == other.hasMemStoreLoad()); if (hasMemStoreLoad()) { result = result && (getMemStoreLoad() == other.getMemStoreLoad()); } result = result && (hasHeapOccupancy() == other.hasHeapOccupancy()); if (hasHeapOccupancy()) { result = result && (getHeapOccupancy() == other.getHeapOccupancy()); } result = result && (hasCompactionPressure() == other.hasCompactionPressure()); if (hasCompactionPressure()) { result = result && (getCompactionPressure() == other.getCompactionPressure()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * <code>optional .RegionLoadStats loadStats = 5;</code> * * <pre> * current load on the region * </pre> */ public Builder mergeLoadStats(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats value) { if (loadStatsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && loadStats_ != org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats.getDefaultInstance()) { loadStats_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats.newBuilder(loadStats_).mergeFrom(value).buildPartial(); } else { loadStats_ = value; } onChanged(); } else { loadStatsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional .hbase.pb.RegionLoadStats loadStats = 5 [deprecated = true];</code> * * <pre> * current load on the region * </pre> */ @java.lang.Deprecated public Builder mergeLoadStats(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats value) { if (loadStatsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && loadStats_ != org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats.getDefaultInstance()) { loadStats_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats.newBuilder(loadStats_).mergeFrom(value).buildPartial(); } else { loadStats_ = value; } onChanged(); } else { loadStatsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional .hbase.pb.RegionLoadStats loadStats = 5 [deprecated = true];</code> * * <pre> * current load on the region * </pre> */ @java.lang.Deprecated public Builder mergeLoadStats(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats value) { if (loadStatsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && loadStats_ != org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats.getDefaultInstance()) { loadStats_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats.newBuilder(loadStats_).mergeFrom(value).buildPartial(); } else { loadStats_ = value; } onChanged(); } else { loadStatsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats) obj; boolean result = true; result = result && (hasMemStoreLoad() == other.hasMemStoreLoad()); if (hasMemStoreLoad()) { result = result && (getMemStoreLoad() == other.getMemStoreLoad()); } result = result && (hasHeapOccupancy() == other.hasHeapOccupancy()); if (hasHeapOccupancy()) { result = result && (getHeapOccupancy() == other.getHeapOccupancy()); } result = result && (hasCompactionPressure() == other.hasCompactionPressure()); if (hasCompactionPressure()) { result = result && (getCompactionPressure() == other.getCompactionPressure()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMemstoreLoad()) { hash = (37 * hash) + MEMSTORELOAD_FIELD_NUMBER; hash = (53 * hash) + getMemstoreLoad(); } if (hasHeapOccupancy()) { hash = (37 * hash) + HEAPOCCUPANCY_FIELD_NUMBER; hash = (53 * hash) + getHeapOccupancy(); } if (hasCompactionPressure()) { hash = (37 * hash) + COMPACTIONPRESSURE_FIELD_NUMBER; hash = (53 * hash) + getCompactionPressure(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.facebook.presto.hbase.$internal.com.google.protobuf.CodedOutputStream .computeInt32Size(1, memstoreLoad_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.facebook.presto.hbase.$internal.com.google.protobuf.CodedOutputStream .computeInt32Size(2, heapOccupancy_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.facebook.presto.hbase.$internal.com.google.protobuf.CodedOutputStream .computeInt32Size(3, compactionPressure_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMemStoreLoad()) { hash = (37 * hash) + MEMSTORELOAD_FIELD_NUMBER; hash = (53 * hash) + getMemStoreLoad(); } if (hasHeapOccupancy()) { hash = (37 * hash) + HEAPOCCUPANCY_FIELD_NUMBER; hash = (53 * hash) + getHeapOccupancy(); } if (hasCompactionPressure()) { hash = (37 * hash) + COMPACTIONPRESSURE_FIELD_NUMBER; hash = (53 * hash) + getCompactionPressure(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, memStoreLoad_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, heapOccupancy_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, compactionPressure_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats buildPartial() { org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats result = new org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionLoadStats(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.memstoreLoad_ = memstoreLoad_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.heapOccupancy_ = heapOccupancy_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.compactionPressure_ = compactionPressure_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }