@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStorageLocator()) { hash = (37 * hash) + STORAGELOCATOR_FIELD_NUMBER; hash = (53 * hash) + getStorageLocator().hashCode(); } hash = (37 * hash) + FRAGMENTCOUNT_FIELD_NUMBER; hash = (53 * hash) + getFragmentCount(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStorageLocator()) { hash = (37 * hash) + STORAGELOCATOR_FIELD_NUMBER; hash = (53 * hash) + getStorageLocator().hashCode(); } hash = (37 * hash) + FRAGMENTCOUNT_FIELD_NUMBER; hash = (53 * hash) + getFragmentCount(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.webank.ai.fate.api.eggroll.storage.Kv.CreateTableInfo)) { return super.equals(obj); } com.webank.ai.fate.api.eggroll.storage.Kv.CreateTableInfo other = (com.webank.ai.fate.api.eggroll.storage.Kv.CreateTableInfo) obj; boolean result = true; result = result && (hasStorageLocator() == other.hasStorageLocator()); if (hasStorageLocator()) { result = result && getStorageLocator() .equals(other.getStorageLocator()); } result = result && (getFragmentCount() == other.getFragmentCount()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.webank.ai.fate.api.eggroll.storage.Kv.CreateTableInfo)) { return super.equals(obj); } com.webank.ai.fate.api.eggroll.storage.Kv.CreateTableInfo other = (com.webank.ai.fate.api.eggroll.storage.Kv.CreateTableInfo) obj; boolean result = true; result = result && (hasStorageLocator() == other.hasStorageLocator()); if (hasStorageLocator()) { result = result && getStorageLocator() .equals(other.getStorageLocator()); } result = result && (getFragmentCount() == other.getFragmentCount()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.webank.ai.fate.api.eggroll.storage.Kv.CreateTableInfo other) { if (other == com.webank.ai.fate.api.eggroll.storage.Kv.CreateTableInfo.getDefaultInstance()) return this; if (other.hasStorageLocator()) { mergeStorageLocator(other.getStorageLocator()); } if (other.getFragmentCount() != 0) { setFragmentCount(other.getFragmentCount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(com.webank.ai.fate.api.eggroll.storage.Kv.CreateTableInfo other) { if (other == com.webank.ai.fate.api.eggroll.storage.Kv.CreateTableInfo.getDefaultInstance()) return this; if (other.hasStorageLocator()) { mergeStorageLocator(other.getStorageLocator()); } if (other.getFragmentCount() != 0) { setFragmentCount(other.getFragmentCount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Dtable toDtable(Kv.CreateTableInfo createTableInfo) { Dtable result = toDtable(createTableInfo.getStorageLocator()); result.setTotalFragments(createTableInfo.getFragmentCount()); result.setStatus(DtableStatus.NORMAL.name()); return result; }