6151fec89a02ef41e499c10fd3732862a06e8be0
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 2
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Push Down Attribute | 2 | ||
Push Down Attribute protected mReadBytes : long from class alluxio.client.file.FileInStream to private mReadBytes : long from class alluxio.client.file.UnknownFileInStream | From | To | |
Push Down Attribute protected mCurrentCacheBytesWritten : long from class alluxio.client.file.FileInStream to private mCurrentCacheBytesWritten : long from class alluxio.client.file.UnknownFileInStream | From | To | |
Replace Variable With Attribute | 1 | ||
Replace Variable With Attribute data : int to mSingleByte : byte[] in method protected writeToCacheStream(buffer byte[], offset int, length int) : void in class alluxio.client.file.FileInStream | From | To | |
Parameterize Variable | 4 | ||
Parameterize Variable bytesRead : int to length : int in method protected writeToCacheStream(buffer byte[], offset int, length int) : void in class alluxio.client.file.FileInStream | From | To | |
Parameterize Variable currentBlockId : long to blockId : long in method protected createCacheStream(blockId long, length long, address WorkerNetAddress) : BufferedBlockOutStream in class alluxio.client.file.FileInStream | From | To | |
Parameterize Variable currentOffset : int to offset : int in method protected writeToCacheStream(buffer byte[], offset int, length int) : void in class alluxio.client.file.FileInStream | From | To | |
Change Variable Type | 1 | ||
Change Variable Type data : int to mSingleByte : byte[] in method protected writeToCacheStream(buffer byte[], offset int, length int) : void in class alluxio.client.file.FileInStream | From | To | |
Extract Method | 5 | ||
Extract Method protected updatePosForRead(bytesRead int) : void extracted from public read(b byte[], off int, len int) : int in class alluxio.client.file.FileInStream | From | To | |
Extract Method protected writeToCacheStream(buffer byte[], offset int, length int) : void extracted from public read(b byte[], off int, len int) : int in class alluxio.client.file.FileInStream | From | To | |
Extract Method protected writeToCacheStream(buffer byte[], offset int, length int) : void extracted from public read() : int in class alluxio.client.file.FileInStream | From | To | |
Extract Method protected createCacheStream(blockId long, length long, address WorkerNetAddress) : BufferedBlockOutStream extracted from private checkAndAdvanceBlockInStream() : void in class alluxio.client.file.FileInStream | From | To | |
Extract Method protected createCacheStream(blockId long, length long, address WorkerNetAddress) : BufferedBlockOutStream extracted from private seekBlockInStream(newPos long) : void in class alluxio.client.file.FileInStream | From | To | |
Rename Parameter | 1 | ||
Rename Parameter b : byte[] to buffer : byte[] in method protected writeToCacheStream(buffer byte[], offset int, length int) : void in class alluxio.client.file.FileInStream | From | To |