@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getFirstPartCount() > 0) { hash = (37 * hash) + FIRST_PART_FIELD_NUMBER; hash = (53 * hash) + getFirstPartList().hashCode(); } if (hasSecondPart()) { hash = (37 * hash) + SECOND_PART_FIELD_NUMBER; hash = (53 * hash) + getSecondPart().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse other) { if (other == org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse.getDefaultInstance()) return this; if (!other.firstPart_.isEmpty()) { if (firstPart_.isEmpty()) { firstPart_ = other.firstPart_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFirstPartIsMutable(); firstPart_.addAll(other.firstPart_); } onChanged(); } if (other.hasSecondPart()) { setSecondPart(other.getSecondPart()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
@Override protected void aggregate(RegionInfo region, AggregateResponse resp) throws IOException { if (resp.getFirstPartCount() > 0) { sum = ci.add(sum, getPromotedValueFromProto(ci, resp, 0)); count += resp.getSecondPart().asReadOnlyByteBuffer().getLong(); } }
@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.AggregateProtos.AggregateResponse)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse other = (org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse) obj; boolean result = true; result = result && getFirstPartList() .equals(other.getFirstPartList()); result = result && (hasSecondPart() == other.hasSecondPart()); if (hasSecondPart()) { result = result && getSecondPart() .equals(other.getSecondPart()); } 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.AggregateProtos.AggregateResponse)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse other = (org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse) obj; boolean result = true; result = result && getFirstPartList() .equals(other.getFirstPartList()); result = result && (hasSecondPart() == other.hasSecondPart()); if (hasSecondPart()) { result = result && getSecondPart() .equals(other.getSecondPart()); } 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 (getFirstPartCount() > 0) { hash = (37 * hash) + FIRST_PART_FIELD_NUMBER; hash = (53 * hash) + getFirstPartList().hashCode(); } if (hasSecondPart()) { hash = (37 * hash) + SECOND_PART_FIELD_NUMBER; hash = (53 * hash) + getSecondPart().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse other) { if (other == org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse.getDefaultInstance()) return this; if (!other.firstPart_.isEmpty()) { if (firstPart_.isEmpty()) { firstPart_ = other.firstPart_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFirstPartIsMutable(); firstPart_.addAll(other.firstPart_); } onChanged(); } if (other.hasSecondPart()) { setSecondPart(other.getSecondPart()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse other) { if (other == org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse.getDefaultInstance()) return this; if (!other.firstPart_.isEmpty()) { if (firstPart_.isEmpty()) { firstPart_ = other.firstPart_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFirstPartIsMutable(); firstPart_.addAll(other.firstPart_); } onChanged(); } if (other.hasSecondPart()) { setSecondPart(other.getSecondPart()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse other) { if (other == org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse.getDefaultInstance()) return this; if (!other.firstPart_.isEmpty()) { if (firstPart_.isEmpty()) { firstPart_ = other.firstPart_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFirstPartIsMutable(); firstPart_.addAll(other.firstPart_); } onChanged(); } if (other.hasSecondPart()) { setSecondPart(other.getSecondPart()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getFirstPartCount() > 0) { hash = (37 * hash) + FIRST_PART_FIELD_NUMBER; hash = (53 * hash) + getFirstPartList().hashCode(); } if (hasSecondPart()) { hash = (37 * hash) + SECOND_PART_FIELD_NUMBER; hash = (53 * hash) + getSecondPart().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
/** * <code>optional bytes second_part = 2;</code> */ public Builder clearSecondPart() { bitField0_ = (bitField0_ & ~0x00000002); secondPart_ = getDefaultInstance().getSecondPart(); onChanged(); return this; }
@Override protected void aggregate(RegionInfo region, AggregateResponse resp) throws IOException { if (resp.getFirstPartCount() > 0) { sum = ci.add(sum, getPromotedValueFromProto(ci, resp, 0)); count += resp.getSecondPart().asReadOnlyByteBuffer().getLong(); } }
@Override protected void aggregate(RegionInfo region, AggregateResponse resp) throws IOException { if (resp.getFirstPartCount() > 0) { sum = ci.add(sum, getPromotedValueFromProto(ci, resp, 0)); sumSq = ci.add(sumSq, getPromotedValueFromProto(ci, resp, 1)); count += resp.getSecondPart().asReadOnlyByteBuffer().getLong(); } }
@Override protected void aggregate(RegionInfo region, AggregateResponse resp) throws IOException { if (resp.getFirstPartCount() > 0) { sum = ci.add(sum, getPromotedValueFromProto(ci, resp, 0)); sumSq = ci.add(sumSq, getPromotedValueFromProto(ci, resp, 1)); count += resp.getSecondPart().asReadOnlyByteBuffer().getLong(); } }
/** * <code>optional bytes second_part = 2;</code> */ public Builder clearSecondPart() { bitField0_ = (bitField0_ & ~0x00000002); secondPart_ = getDefaultInstance().getSecondPart(); onChanged(); return this; }
@Override protected void aggregate(RegionInfo region, AggregateResponse resp) throws IOException { if (resp.getFirstPartCount() > 0) { sum = ci.add(sum, getPromotedValueFromProto(ci, resp, 0)); count += resp.getSecondPart().asReadOnlyByteBuffer().getLong(); } }
/** * <code>optional bytes second_part = 2;</code> */ public Builder clearSecondPart() { bitField0_ = (bitField0_ & ~0x00000002); secondPart_ = getDefaultInstance().getSecondPart(); onChanged(); 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.AggregateProtos.AggregateResponse)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse other = (org.apache.hadoop.hbase.protobuf.generated.AggregateProtos.AggregateResponse) obj; boolean result = true; result = result && getFirstPartList() .equals(other.getFirstPartList()); result = result && (hasSecondPart() == other.hasSecondPart()); if (hasSecondPart()) { result = result && getSecondPart() .equals(other.getSecondPart()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * <code>optional bytes second_part = 2;</code> */ public Builder clearSecondPart() { bitField0_ = (bitField0_ & ~0x00000002); secondPart_ = getDefaultInstance().getSecondPart(); onChanged(); return this; }
@Override protected void aggregate(RegionInfo region, AggregateResponse resp) throws IOException { if (resp.getFirstPartCount() > 0) { sum = ci.add(sum, getPromotedValueFromProto(ci, resp, 0)); sumSq = ci.add(sumSq, getPromotedValueFromProto(ci, resp, 1)); count += resp.getSecondPart().asReadOnlyByteBuffer().getLong(); } }