a31eada33a598ebf9f78e48a3ab1ed031b9bbd27
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 4
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Variable | 1 | ||
Rename Variable indices4Decode : int[] to erasedIndices : int[] in method private recoverTargets(success int[], targetsStatus boolean[], toRecoverLen int) : void in class org.apache.hadoop.hdfs.server.datanode.erasurecode.ErasureCodingWorker.ReconstructAndTransferBlock | From | To | |
Change Return Type | 2 | ||
Change Return Type void to int in method private scheduleNewRead(used BitSet) : int in class org.apache.hadoop.hdfs.server.datanode.erasurecode.ErasureCodingWorker.ReconstructAndTransferBlock | From | To | |
Change Return Type int to int[] in method private readMinimumStripedData4Recovery(success int[]) : int[] in class org.apache.hadoop.hdfs.server.datanode.erasurecode.ErasureCodingWorker.ReconstructAndTransferBlock | From | To | |
Parameterize Variable | 1 | ||
Parameterize Variable m : int to i : int in method private addStripedReader(i int, offsetInBlock long) : StripedReader in class org.apache.hadoop.hdfs.server.datanode.erasurecode.ErasureCodingWorker.ReconstructAndTransferBlock | From | To | |
Extract Method | 3 | ||
Extract Method private allocateBuffer(length int) : ByteBuffer extracted from public run() : void in class org.apache.hadoop.hdfs.server.datanode.erasurecode.ErasureCodingWorker.ReconstructAndTransferBlock | From | To | |
Extract Method private addStripedReader(i int, offsetInBlock long) : StripedReader extracted from private scheduleNewRead(used BitSet) : void in class org.apache.hadoop.hdfs.server.datanode.erasurecode.ErasureCodingWorker.ReconstructAndTransferBlock | From | To | |
Extract Method private addStripedReader(i int, offsetInBlock long) : StripedReader extracted from public run() : void in class org.apache.hadoop.hdfs.server.datanode.erasurecode.ErasureCodingWorker.ReconstructAndTransferBlock | From | To | |
Rename Parameter | 1 | ||
Rename Parameter startOffset : long to offsetInBlock : long in method private newBlockReader(block ExtendedBlock, offsetInBlock long, dnInfo DatanodeInfo) : BlockReader in class org.apache.hadoop.hdfs.server.datanode.erasurecode.ErasureCodingWorker.ReconstructAndTransferBlock | From | To |