5e8837dd6cc747b3259751930f2a9eed7163bcad
Files Diff
- Added: 2
- Removed: 0
- Renamed: 0
- Modified: 10
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method public createECFile(cluster MiniDFSCluster, file Path, dir Path, numBlocks int, numStripesPerBlk int) : void renamed to public createStripedFile(cluster MiniDFSCluster, file Path, dir Path, numBlocks int, numStripesPerBlk int, toMkdir boolean) : void in class org.apache.hadoop.hdfs.DFSTestUtil | From | To | |
Rename Method package createBlock(dataNodes List<DataNode>, fs DistributedFileSystem, ns FSNamesystem, file String, fileNode INodeFile, clientName String, previous ExtendedBlock, numStripes int) : Block renamed to public addStripedBlockToFile(dataNodes List<DataNode>, fs DistributedFileSystem, ns FSNamesystem, file String, fileNode INodeFile, clientName String, previous ExtendedBlock, numStripes int) : Block in class org.apache.hadoop.hdfs.DFSTestUtil | From | To | |
Move Method | 4 | ||
Move Method private createDummyLocatedBlock() : LocatedStripedBlock from class org.apache.hadoop.hdfs.TestReadStripedFile to private createDummyLocatedBlock() : LocatedStripedBlock from class org.apache.hadoop.hdfs.util.TestStripedBlockUtil | From | To | |
Move Method public testParseDummyStripedBlock() : void from class org.apache.hadoop.hdfs.TestReadStripedFile to public testParseDummyStripedBlock() : void from class org.apache.hadoop.hdfs.util.TestStripedBlockUtil | From | To | |
Move Method private constructInternalBlock(bg LocatedStripedBlock, idxInReturnedLocs int, cellSize int, idxInBlockGroup int) : LocatedBlock from class org.apache.hadoop.hdfs.DFSStripedInputStream to public constructInternalBlock(bg LocatedStripedBlock, idxInReturnedLocs int, cellSize int, dataBlkNum int, idxInBlockGroup int) : LocatedBlock from class org.apache.hadoop.hdfs.util.StripedBlockUtil | From | To | |
Move Method package parseStripedBlockGroup(bg LocatedStripedBlock, dataBlkNum int, cellSize int) : LocatedBlock[] from class org.apache.hadoop.hdfs.DFSStripedInputStream to public parseStripedBlockGroup(bg LocatedStripedBlock, cellSize int, dataBlkNum int, parityBlkNum int) : LocatedBlock[] from class org.apache.hadoop.hdfs.util.StripedBlockUtil | From | To | |
Rename Variable | 2 | ||
Rename Variable j : int to posInBlk : int in method private testOneFile(src String, writeBytes int) : void in class org.apache.hadoop.hdfs.TestDFSStripedOutputStream | From | To | |
Rename Variable pos : long to posInFile : long in method private testOneFile(src String, writeBytes int) : void in class org.apache.hadoop.hdfs.TestDFSStripedOutputStream | From | To | |
Extract Class | 1 | ||
Extract Class org.apache.hadoop.hdfs.util.TestStripedBlockUtil from class org.apache.hadoop.hdfs.TestReadStripedFile | From | To | |
Rename Attribute | 2 | ||
Rename Attribute groupSize : short to dataBlkNum : short in class org.apache.hadoop.hdfs.DFSStripedInputStream | From | To | |
Rename Attribute TOTAL_SIZE : short to BLK_GROUP_SIZE : short in class org.apache.hadoop.hdfs.TestReadStripedFile | From | To | |
Split Attribute | 1 | ||
Split Attribute GROUP_SIZE : short to [DATA_BLK_NUM : short, CELLSIZE : int] in class org.apache.hadoop.hdfs.TestReadStripedFile | From | To | |
Rename Parameter | 1 | ||
Rename Parameter groupSize : int to dataBlkNum : int in method package planReadPortions(dataBlkNum int, cellSize int, startInBlk long, len int, bufOffset int) : ReadPortion[] in class org.apache.hadoop.hdfs.DFSStripedInputStream | From | To |