343c0e76fcd95ac739ca7cd6742c9d617e19fc37
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 16
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method protected resetBuffer(buffer ByteBuffer) : ByteBuffer renamed to protected resetOutputBuffer(buffer ByteBuffer) : ByteBuffer in class org.apache.hadoop.io.erasurecode.rawcoder.AbstractRawErasureCoder | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type buffers : ByteBuffer[] to chunks : ECChunk[] in method protected toArrays(chunks ECChunk[]) : byte[][] in class org.apache.hadoop.io.erasurecode.TestCoderBase | From | To | |
Move Method | 1 | ||
Move Method protected toArrays(buffers ByteBuffer[]) : byte[][] from class org.apache.hadoop.io.erasurecode.rawcoder.AbstractRawErasureCoder to protected toArrays(chunks ECChunk[]) : byte[][] from class org.apache.hadoop.io.erasurecode.TestCoderBase | From | To | |
Rename Variable | 3 | ||
Rename Variable hasArray : boolean to usingDirectBuffer : boolean in method public encode(inputs ByteBuffer[], outputs ByteBuffer[]) : void in class org.apache.hadoop.io.erasurecode.rawcoder.AbstractRawErasureEncoder | From | To | |
Rename Variable data : ByteBuffer[] to all : ByteBuffer[] in method protected doEncode(inputs ByteBuffer[], outputs ByteBuffer[]) : void in class org.apache.hadoop.io.erasurecode.rawcoder.RSRawEncoder | From | To | |
Rename Variable hasArray : boolean to usingDirectBuffer : boolean in method public decode(inputs ByteBuffer[], erasedIndexes int[], outputs ByteBuffer[]) : void in class org.apache.hadoop.io.erasurecode.rawcoder.AbstractRawErasureDecoder | From | To | |
Move Attribute | 1 | ||
Move Attribute private zeroChunkBytes : byte[] from class org.apache.hadoop.io.erasurecode.rawcoder.AbstractRawErasureCoder to private zeroChunkBytes : byte[] from class org.apache.hadoop.io.erasurecode.TestCoderBase | From | To | |
Extract Variable | 4 | ||
Extract Variable b2 : ByteBuffer in method public remainder(dividend ByteBuffer[], divisor int[]) : void from class org.apache.hadoop.io.erasurecode.rawcoder.util.GaloisField | From | To | |
Extract Variable output : ByteBuffer in method protected doDecode(inputs ByteBuffer[], erasedIndexes int[], outputs ByteBuffer[]) : void from class org.apache.hadoop.io.erasurecode.rawcoder.XORRawDecoder | From | To | |
Extract Variable output : ByteBuffer in method protected doEncode(inputs ByteBuffer[], outputs ByteBuffer[]) : void from class org.apache.hadoop.io.erasurecode.rawcoder.XORRawEncoder | From | To | |
Extract Variable p : ByteBuffer in method public solveVandermondeSystem(x int[], y ByteBuffer[], len int) : void from class org.apache.hadoop.io.erasurecode.rawcoder.util.GaloisField | From | To | |
Extract Method | 2 | ||
Extract Method private performTestCoding(chunkSize int, useBadInput boolean, useBadOutput boolean) : void extracted from protected testCoding(usingDirectBuffer boolean) : void in class org.apache.hadoop.io.erasurecode.rawcoder.TestRawCoderBase | From | To | |
Extract Method private performTestCoding(chunkSize int) : void extracted from protected testCoding(usingDirectBuffer boolean) : void in class org.apache.hadoop.io.erasurecode.coder.TestErasureCoderBase | From | To | |
Rename Parameter | 1 | ||
Rename Parameter buffers : ByteBuffer[] to chunks : ECChunk[] in method protected toArrays(chunks ECChunk[]) : byte[][] in class org.apache.hadoop.io.erasurecode.TestCoderBase | From | To |