f57aab665b51465ea215a4739f467601af55651e
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 5
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Variable | 3 | ||
Rename Variable recordsSizeDiff : int to sizeDiff : long in method public updateRecord(clusterPosition long, content byte[], recordVersion ORecordVersion, recordType byte) : void in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Rename Variable recordPosition : int to nextRecordPosition : int in method public updateRecord(clusterPosition long, content byte[], recordVersion ORecordVersion, recordType byte) : void in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Rename Variable chunkSize : int to currentEntrySize : int in method public updateRecord(clusterPosition long, content byte[], recordVersion ORecordVersion, recordType byte) : void in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Parameterize Variable | 2 | ||
Parameterize Variable prevPageRecordPointer : long to nextPagePointer : long in method private getRecordPosition(nextPagePointer long) : int in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Parameterize Variable prevPageRecordPointer : long to nextPagePointer : long in method private getPageIndex(nextPagePointer long) : long in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Change Variable Type | 1 | ||
Change Variable Type recordsSizeDiff : int to sizeDiff : long in method public updateRecord(clusterPosition long, content byte[], recordVersion ORecordVersion, recordType byte) : void in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract Method | 11 | ||
Extract Method private getPageIndex(nextPagePointer long) : long extracted from public readDebug(clusterPosition long) : OPaginatedClusterDebug in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract Method private getRecordPosition(nextPagePointer long) : int extracted from public deleteRecord(clusterPosition long) : boolean in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract Method private getEntryContentLength(grownContentSize int) : int extracted from public createRecord(content byte[], recordVersion ORecordVersion, recordType byte) : OPhysicalPosition in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract Method private getPageIndex(nextPagePointer long) : long extracted from private readFullEntry(clusterPosition long, pageIndex long, recordPosition int, atomicOperation OAtomicOperation) : byte[] in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract Method private getPageIndex(nextPagePointer long) : long extracted from public createRecord(content byte[], recordVersion ORecordVersion, recordType byte) : OPhysicalPosition in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract Method private getPageIndex(nextPagePointer long) : long extracted from public deleteRecord(clusterPosition long) : boolean in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract Method private getRecordPosition(nextPagePointer long) : int extracted from public updateRecord(clusterPosition long, content byte[], recordVersion ORecordVersion, recordType byte) : void in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract Method private getPageIndex(nextPagePointer long) : long extracted from public updateRecord(clusterPosition long, content byte[], recordVersion ORecordVersion, recordType byte) : void in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract Method private getRecordPosition(nextPagePointer long) : int extracted from private readFullEntry(clusterPosition long, pageIndex long, recordPosition int, atomicOperation OAtomicOperation) : byte[] in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract Method private getRecordPosition(nextPagePointer long) : int extracted from public createRecord(content byte[], recordVersion ORecordVersion, recordType byte) : OPhysicalPosition in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract Method private getRecordPosition(nextPagePointer long) : int extracted from public readDebug(clusterPosition long) : OPaginatedClusterDebug in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster | From | To | |
Extract And Move Method | 1 | ||
Extract And Move Method public update(clusterPosition long, entry OClusterPositionMapBucket.PositionEntry) : void extracted from public updateRecord(clusterPosition long, content byte[], recordVersion ORecordVersion, recordType byte) : void in class com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster & moved to class com.orientechnologies.orient.core.storage.impl.local.paginated.OClusterPositionMap | From | To |