5c97db07fb306842f49d73a67a90cecec19a7833
Files Diff
- Added: 13
- Removed: 12
- Renamed: 0
- Modified: 30
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move Method | 3 | ||
Move Method public percent2String(percentage double) : String from class org.apache.hadoop.hdfs.DFSUtil to public percent2String(percentage double) : String from class org.apache.hadoop.hdfs.DFSUtilClient | From | To | |
Move Method public getPercentRemaining(remaining long, capacity long) : float from class org.apache.hadoop.hdfs.DFSUtil to public getPercentRemaining(remaining long, capacity long) : float from class org.apache.hadoop.hdfs.DFSUtilClient | From | To | |
Move Method public getPercentUsed(used long, capacity long) : float from class org.apache.hadoop.hdfs.DFSUtil to public getPercentUsed(used long, capacity long) : float from class org.apache.hadoop.hdfs.DFSUtilClient | From | To | |
Move Source Folder | 1 | ||
Move Source Folder hadoop-hdfs-project/hadoop-hdfs to hadoop-hdfs-project/hadoop-hdfs-client | From | To | |
Extract Class | 1 | ||
Extract Class org.apache.hadoop.hdfs.DFSUtilClient from class org.apache.hadoop.hdfs.DFSUtil | From | To | |
Parameterize Variable | 1 | ||
Parameterize Variable eb : ExtendedBlock to b : ExtendedBlock in method public newLocatedBlock(b ExtendedBlock, storages DatanodeStorageInfo[], startOffset long, corrupt boolean) : LocatedBlock in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Extract Method | 2 | ||
Extract Method public newLocatedBlock(b ExtendedBlock, storages DatanodeStorageInfo[], startOffset long, corrupt boolean) : LocatedBlock extracted from private createLocatedBlock(blk BlockInfoContiguous, pos long) : LocatedBlock in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Extract And Move Method | 2 | ||
Extract And Move Method public newLocatedBlock(b ExtendedBlock, storages DatanodeStorageInfo[], startOffset long, corrupt boolean) : LocatedBlock extracted from package makeLocatedBlock(blk Block, locs DatanodeStorageInfo[], offset long) : LocatedBlock in class org.apache.hadoop.hdfs.server.namenode.FSNamesystem & moved to class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Extract And Move Method public newLocatedBlock(b ExtendedBlock, storages DatanodeStorageInfo[], startOffset long, corrupt boolean) : LocatedBlock extracted from package getAdditionalDatanode(src String, fileId long, blk ExtendedBlock, existings DatanodeInfo[], storageIDs String[], excludes Set<Node>, numAdditionalNodes int, clientName String) : LocatedBlock in class org.apache.hadoop.hdfs.server.namenode.FSNamesystem & moved to class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To |