hash = (53 * hash) + hashLong(getEpoch());
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasJournalId()) { hash = (37 * hash) + JOURNALID_FIELD_NUMBER; hash = (53 * hash) + getJournalId().hashCode(); } if (hasEpoch()) { hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + hashLong(getEpoch()); } if (hasIpcSerialNumber()) { hash = (37 * hash) + IPCSERIALNUMBER_FIELD_NUMBER; hash = (53 * hash) + hashLong(getIpcSerialNumber()); } if (hasCommittedTxId()) { hash = (37 * hash) + COMMITTEDTXID_FIELD_NUMBER; hash = (53 * hash) + hashLong(getCommittedTxId()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasJournalId()) { hash = (37 * hash) + JOURNALID_FIELD_NUMBER; hash = (53 * hash) + getJournalId().hashCode(); } if (hasEpoch()) { hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + hashLong(getEpoch()); } if (hasIpcSerialNumber()) { hash = (37 * hash) + IPCSERIALNUMBER_FIELD_NUMBER; hash = (53 * hash) + hashLong(getIpcSerialNumber()); } if (hasCommittedTxId()) { hash = (37 * hash) + COMMITTEDTXID_FIELD_NUMBER; hash = (53 * hash) + hashLong(getCommittedTxId()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto other) { if (other == org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto.getDefaultInstance()) return this; if (other.hasJournalId()) { mergeJournalId(other.getJournalId()); } if (other.hasEpoch()) { setEpoch(other.getEpoch()); } if (other.hasIpcSerialNumber()) { setIpcSerialNumber(other.getIpcSerialNumber()); } if (other.hasCommittedTxId()) { setCommittedTxId(other.getCommittedTxId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto other) { if (other == org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto.getDefaultInstance()) return this; if (other.hasJournalId()) { mergeJournalId(other.getJournalId()); } if (other.hasEpoch()) { setEpoch(other.getEpoch()); } if (other.hasIpcSerialNumber()) { setIpcSerialNumber(other.getIpcSerialNumber()); } if (other.hasCommittedTxId()) { setCommittedTxId(other.getCommittedTxId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private RequestInfo convert( QJournalProtocolProtos.RequestInfoProto reqInfo) { return new RequestInfo( reqInfo.getJournalId().getIdentifier(), reqInfo.getEpoch(), reqInfo.getIpcSerialNumber(), reqInfo.hasCommittedTxId() ? reqInfo.getCommittedTxId() : HdfsConstants.INVALID_TXID); }
private RequestInfo convert( QJournalProtocolProtos.RequestInfoProto reqInfo) { return new RequestInfo( reqInfo.getJournalId().getIdentifier(), reqInfo.getEpoch(), reqInfo.getIpcSerialNumber(), reqInfo.hasCommittedTxId() ? reqInfo.getCommittedTxId() : HdfsConstants.INVALID_TXID); }
public Builder mergeFrom(org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto other) { if (other == org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos.RequestInfoProto.getDefaultInstance()) return this; if (other.hasJournalId()) { mergeJournalId(other.getJournalId()); } if (other.hasEpoch()) { setEpoch(other.getEpoch()); } if (other.hasIpcSerialNumber()) { setIpcSerialNumber(other.getIpcSerialNumber()); } if (other.hasCommittedTxId()) { setCommittedTxId(other.getCommittedTxId()); } if (other.hasNameServiceId()) { bitField0_ |= 0x00000010; nameServiceId_ = other.nameServiceId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private RequestInfo convert( QJournalProtocolProtos.RequestInfoProto reqInfo) { return new RequestInfo( reqInfo.getJournalId().getIdentifier(), reqInfo.hasNameServiceId() ? reqInfo.getNameServiceId() : null, reqInfo.getEpoch(), reqInfo.getIpcSerialNumber(), reqInfo.hasCommittedTxId() ? reqInfo.getCommittedTxId() : HdfsServerConstants.INVALID_TXID); }