@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FRAGMENT_FIELD_NUMBER; hash = (53 * hash) + getFragment(); 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(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FRAGMENT_FIELD_NUMBER; hash = (53 * hash) + getFragment(); 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.StorageBasic.StorageLocator)) { return super.equals(obj); } com.webank.ai.fate.api.eggroll.storage.StorageBasic.StorageLocator other = (com.webank.ai.fate.api.eggroll.storage.StorageBasic.StorageLocator) obj; boolean result = true; result = result && type_ == other.type_; result = result && getNamespace() .equals(other.getNamespace()); result = result && getName() .equals(other.getName()); result = result && (getFragment() == other.getFragment()); result = result && unknownFields.equals(other.unknownFields); return result; }
.setFragment(passedInTransferDataDesc.getStorageLocator().getFragment()) // total fragment count .setType(passedInTransferDataDesc.getStorageLocator().getType()); StorageBasic.StorageLocator finalStorageLocator = finalTransferDataDesc.getStorageLocator(); Dtable dtable = storageMetaClient.getTable(typeConversionUtils.toDtable(finalStorageLocator)); int fragmentCount = finalStorageLocator.getFragment();
public Builder mergeFrom(com.webank.ai.fate.api.eggroll.storage.StorageBasic.StorageLocator other) { if (other == com.webank.ai.fate.api.eggroll.storage.StorageBasic.StorageLocator.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getFragment() != 0) { setFragment(other.getFragment()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@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.StorageBasic.StorageLocator)) { return super.equals(obj); } com.webank.ai.fate.api.eggroll.storage.StorageBasic.StorageLocator other = (com.webank.ai.fate.api.eggroll.storage.StorageBasic.StorageLocator) obj; boolean result = true; result = result && type_ == other.type_; result = result && getNamespace() .equals(other.getNamespace()); result = result && getName() .equals(other.getName()); result = result && (getFragment() == other.getFragment()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.webank.ai.fate.api.eggroll.storage.StorageBasic.StorageLocator other) { if (other == com.webank.ai.fate.api.eggroll.storage.StorageBasic.StorageLocator.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getFragment() != 0) { setFragment(other.getFragment()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public static StoreInfo fromStorageLocator(StorageBasic.StorageLocator storageLocator) { return StoreInfo.builder() .nameSpace(storageLocator.getNamespace()) .tableName(storageLocator.getName()) .fragment(storageLocator.getFragment()) .type(storageLocator.getType().name()) .build(); }