76e3156d014e12094bbb55ecbd024b5edbf4b4cf
Files Diff
- Added: 2
- Removed: 0
- Renamed: 0
- Modified: 3
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method public getAggregateType() : ResourceAggregateType renamed to public getResourceAggregateType() : ResourceAggregateType in class org.apache.flink.api.common.resources.Resource | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type extendedResources : Map<String,ResourceSpec.Resource> to extendedResources : Map<String,Resource> in method public ResourceProfile(cpuCores double, heapMemoryInMB int, directMemoryInMB int, nativeMemoryInMB int, extendedResources Map<String,Resource>) in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Rename Variable | 3 | ||
Rename Variable resourceStr : String to resources : StringBuilder in method public toString() : String in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Rename Variable value : Double to aggregatedValue : double in method public merge(other Resource) : Resource in class org.apache.flink.api.common.resources.Resource | From | To | |
Rename Variable extendResource : Map<String,ResourceSpec.Resource> to copiedExtendedResources : Map<String,Resource> in method package fromResourceSpec(resourceSpec ResourceSpec) : ResourceProfile in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Change Return Type | 1 | ||
Change Return Type Map<String,ResourceSpec.Resource> to Map<String,Resource> in method public getExtendedResources() : Map<String,Resource> in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Move Class | 2 | ||
Move Class org.apache.flink.api.common.operators.ResourceSpec.GPUResource moved to org.apache.flink.api.common.resources.GPUResource | From | To | |
Move Class org.apache.flink.api.common.operators.ResourceSpec.Resource moved to org.apache.flink.api.common.resources.Resource | From | To | |
Rename Attribute | 1 | ||
Rename Attribute type : ResourceAggregateType to resourceAggregateType : ResourceAggregateType in class org.apache.flink.api.common.resources.Resource | From | To | |
Change Variable Type | 8 | ||
Change Variable Type resource : Map.Entry<String,ResourceSpec.Resource> to resource : Map.Entry<String,Resource> in method public isMatching(required ResourceProfile) : boolean in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Change Variable Type value : Double to aggregatedValue : double in method public merge(other Resource) : Resource in class org.apache.flink.api.common.resources.Resource | From | To | |
Change Variable Type otherIterator : Iterator<Map.Entry<String,ResourceSpec.Resource>> to otherIterator : Iterator<Map.Entry<String,Resource>> in method public compareTo(other ResourceProfile) : int in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Change Variable Type thisIterator : Iterator<Map.Entry<String,ResourceSpec.Resource>> to thisIterator : Iterator<Map.Entry<String,Resource>> in method public compareTo(other ResourceProfile) : int in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Change Variable Type thisResource : Map.Entry<String,ResourceSpec.Resource> to thisResource : Map.Entry<String,Resource> in method public compareTo(other ResourceProfile) : int in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Change Variable Type extendResource : Map<String,ResourceSpec.Resource> to copiedExtendedResources : Map<String,Resource> in method package fromResourceSpec(resourceSpec ResourceSpec) : ResourceProfile in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Change Variable Type otherResource : Map.Entry<String,ResourceSpec.Resource> to otherResource : Map.Entry<String,Resource> in method public compareTo(other ResourceProfile) : int in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Change Variable Type resourceStr : String to resources : StringBuilder in method public toString() : String in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type extendedResources : Map<String,ResourceSpec.Resource> to extendedResources : Map<String,Resource> in class org.apache.flink.runtime.clusterframework.types.ResourceProfile | From | To | |
Extract And Move Method | 1 | ||
Extract And Move Method public getExtendedResources() : Map<String,Resource> extracted from public fromResourceSpec(resourceSpec ResourceSpec) : ResourceProfile in class org.apache.flink.runtime.clusterframework.types.ResourceProfile & moved to class org.apache.flink.api.common.operators.ResourceSpec | From | To |