9c7a78c8748a55dc94f7913b5d5b2c2bc27720d5
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 8
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 4 | ||
Rename Method protected copyDataChunksToErase(dataChunks ECChunk[]) : ECChunk[] renamed to protected backupAndEraseChunks(dataChunks ECChunk[]) : ECChunk[] in class org.apache.hadoop.io.erasurecode.TestCoderBase | From | To | |
Rename Method public testCodingDirectBuffer_10x4_erasure_of_2_4() : void renamed to public testCodingDirectBuffer_10x4_erasure_of_d2_d4() : void in class org.apache.hadoop.io.erasurecode.rawcoder.TestRSRawCoder | From | To | |
Rename Method public testCodingDirectBufferWithConf_10x4() : void renamed to public testCodingDirectBufferWithConf_10x4_erasing_d0() : void in class org.apache.hadoop.io.erasurecode.coder.TestRSErasureCoder | From | To | |
Rename Method public testCodingDirectBuffer_10x4_erasure_of_2_4() : void renamed to public testCodingDirectBuffer_10x4_erasure_of_d2_d4() : void in class org.apache.hadoop.io.erasurecode.coder.TestRSErasureCoder | From | To | |
Pull Up Method | 1 | ||
Pull Up Method protected generateDataChunk() : ECChunk from class org.apache.hadoop.io.erasurecode.rawcoder.TestRSRawCoder to protected generateDataChunk() : ECChunk from class org.apache.hadoop.io.erasurecode.rawcoder.TestRSRawCoderBase | From | To | |
Move And Rename Method | 4 | ||
Move And Rename Method public testCodingDirectBuffer() : void from class org.apache.hadoop.io.erasurecode.rawcoder.TestXORRawCoder to public testCodingDirectBuffer_3x3_erasing_d0() : void from class org.apache.hadoop.io.erasurecode.coder.TestRSErasureCoder | From | To | |
Move And Rename Method public testCodingNoDirectBuffer() : void from class org.apache.hadoop.io.erasurecode.coder.TestXORCoder to public testCodingNoDirectBuffer_3x3_erasing_d0() : void from class org.apache.hadoop.io.erasurecode.coder.TestRSErasureCoder | From | To | |
Move And Rename Method public testCodingDirectBuffer() : void from class org.apache.hadoop.io.erasurecode.coder.TestXORCoder to public testCodingDirectBuffer_3x3_erasing_d0() : void from class org.apache.hadoop.io.erasurecode.coder.TestRSErasureCoder | From | To | |
Move And Rename Method public testCodingNoDirectBuffer() : void from class org.apache.hadoop.io.erasurecode.rawcoder.TestXORRawCoder to public testCodingNoDirectBuffer_3x3_erasing_d0() : void from class org.apache.hadoop.io.erasurecode.coder.TestRSErasureCoder | From | To | |
Rename Variable | 4 | ||
Rename Variable copiedChunks : ECChunk[] to toEraseChunks : ECChunk[] in method protected backupAndEraseChunks(dataChunks ECChunk[]) : ECChunk[] in class org.apache.hadoop.io.erasurecode.TestCoderBase | From | To | |
Rename Variable j : int to idx : int in method protected backupAndEraseChunks(dataChunks ECChunk[]) : ECChunk[] in class org.apache.hadoop.io.erasurecode.TestCoderBase | From | To | |
Rename Variable toEraseBlocks : TestBlock[] to backupBlocks : TestBlock[] in method protected testCoding(usingDirectBuffer boolean) : void in class org.apache.hadoop.io.erasurecode.coder.TestErasureCoderBase | From | To | |
Rename Variable toEraseDataChunks : ECChunk[] to backupChunks : ECChunk[] in method protected testCoding(usingDirectBuffer boolean) : void in class org.apache.hadoop.io.erasurecode.rawcoder.TestRawCoderBase | From | To | |
Pull Up Attribute | 2 | ||
Pull Up Attribute private symbolSize : int from class org.apache.hadoop.io.erasurecode.rawcoder.TestRSRawCoder to private symbolSize : int from class org.apache.hadoop.io.erasurecode.rawcoder.TestRSRawCoderBase | From | To | |
Pull Up Attribute private symbolMax : int from class org.apache.hadoop.io.erasurecode.rawcoder.TestRSRawCoder to private symbolMax : int from class org.apache.hadoop.io.erasurecode.rawcoder.TestRSRawCoderBase | From | To | |
Extract Superclass | 1 | ||
Extract Superclass org.apache.hadoop.io.erasurecode.rawcoder.TestRSRawCoderBase from classes [org.apache.hadoop.io.erasurecode.rawcoder.TestRSRawCoder] | From | To | |
Extract Variable | 1 | ||
Extract Variable chunk : ECChunk in method protected backupAndEraseChunks(dataChunks ECChunk[]) : ECChunk[] from class org.apache.hadoop.io.erasurecode.TestCoderBase | From | To | |
Extract Method | 2 | ||
Extract Method private prepareCoders() : void extracted from protected testCoding(usingDirectBuffer boolean) : void in class org.apache.hadoop.io.erasurecode.rawcoder.TestRawCoderBase | From | To | |
Extract Method private prepareCoders() : void extracted from protected testCoding(usingDirectBuffer boolean) : void in class org.apache.hadoop.io.erasurecode.coder.TestErasureCoderBase | From | To | |
Rename Parameter | 1 | ||
Rename Parameter erasedIndexes : int[] to erasedDataIndexes : int[] in method protected prepare(conf Configuration, numDataUnits int, numParityUnits int, erasedDataIndexes int[]) : void in class org.apache.hadoop.io.erasurecode.TestCoderBase | From | To |