ca273745582a1215f5508a06d0a00f48f06d7d4a
Files Diff
- Added: 8
- Removed: 1
- Renamed: 0
- Modified: 16
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move And Rename Method | 1 | ||
Move And Rename Method protected chunkAt(index long) : N from class org.neo4j.unsafe.impl.batchimport.cache.ChunkedNumberArray to public at(index long) : N from class org.neo4j.unsafe.impl.batchimport.cache.DynamicNumberArray | From | To | |
Extract Subclass | 1 | ||
Extract Subclass org.neo4j.unsafe.impl.batchimport.cache.OffHeapRegularNumberArray from class org.neo4j.unsafe.impl.batchimport.cache.OffHeapNumberArray | From | To | |
Move Method | 6 | ||
Move Method public acceptMemoryStatsVisitor(visitor MemoryStatsVisitor) : void from class org.neo4j.unsafe.impl.batchimport.cache.ChunkedNumberArray to public acceptMemoryStatsVisitor(visitor MemoryStatsVisitor) : void from class org.neo4j.unsafe.impl.batchimport.cache.DynamicNumberArray | From | To | |
Move Method public length() : long from class org.neo4j.unsafe.impl.batchimport.cache.ChunkedNumberArray to public length() : long from class org.neo4j.unsafe.impl.batchimport.cache.DynamicNumberArray | From | To | |
Move Method protected chunkIndex(index long) : int from class org.neo4j.unsafe.impl.batchimport.cache.ChunkedNumberArray to protected chunkIndex(index long) : int from class org.neo4j.unsafe.impl.batchimport.cache.DynamicNumberArray | From | To | |
Move Method public close() : void from class org.neo4j.unsafe.impl.batchimport.cache.ChunkedNumberArray to public close() : void from class org.neo4j.unsafe.impl.batchimport.cache.DynamicNumberArray | From | To | |
Move Method protected chunkOrNullAt(index long) : N from class org.neo4j.unsafe.impl.batchimport.cache.ChunkedNumberArray to protected chunkOrNullAt(index long) : N from class org.neo4j.unsafe.impl.batchimport.cache.DynamicNumberArray | From | To | |
Move Method public clear() : void from class org.neo4j.unsafe.impl.batchimport.cache.ChunkedNumberArray to public clear() : void from class org.neo4j.unsafe.impl.batchimport.cache.DynamicNumberArray | From | To | |
Pull Up Attribute | 1 | ||
Pull Up Attribute private itemSize : int from class org.neo4j.unsafe.impl.batchimport.cache.HeapNumberArray to protected itemSize : int from class org.neo4j.unsafe.impl.batchimport.cache.BaseNumberArray | From | To | |
Push Down Attribute | 1 | ||
Push Down Attribute protected shift : int from class org.neo4j.unsafe.impl.batchimport.cache.OffHeapNumberArray to protected shift : int from class org.neo4j.unsafe.impl.batchimport.cache.OffHeapRegularNumberArray | From | To | |
Move Attribute | 2 | ||
Move Attribute private base : long from class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCache to private base : long from class org.neo4j.unsafe.impl.batchimport.cache.BaseNumberArray | From | To | |
Move Attribute protected chunkSize : long from class org.neo4j.unsafe.impl.batchimport.cache.ChunkedNumberArray to protected chunkSize : long from class org.neo4j.unsafe.impl.batchimport.cache.DynamicNumberArray | From | To | |
Change Variable Type | 1 | ||
Change Variable Type newChunks : NumberArray[] to newChunks : N[] in method private synchronizedAddChunk(index long) : void in class org.neo4j.unsafe.impl.batchimport.cache.DynamicNumberArray | From | To | |
Rename Method | 2 | ||
Rename Method private directionIndex(direction Direction) : int renamed to private countOffset(direction Direction) : int in class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCache.RelGroupCache | From | To | |
Rename Method private fieldIsDense(field long) : boolean renamed to private isDense(array ByteArray, nodeId long) : boolean in class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCache | From | To | |
Pull Up Method | 1 | ||
Pull Up Method protected HeapNumberArray(itemSize int) from class org.neo4j.unsafe.impl.batchimport.cache.HeapNumberArray to protected BaseNumberArray(itemSize int, base long) from class org.neo4j.unsafe.impl.batchimport.cache.BaseNumberArray | From | To | |
Push Down Method | 3 | ||
Push Down Method package DynamicNumberArray(factory NumberArrayFactory, chunkSize long) from class org.neo4j.unsafe.impl.batchimport.cache.DynamicNumberArray to public DynamicByteArray(factory NumberArrayFactory, chunkSize long, defaultValue byte[]) from class org.neo4j.unsafe.impl.batchimport.cache.DynamicByteArray | From | To | |
Push Down Method protected isByteUniform(value long) : boolean from class org.neo4j.unsafe.impl.batchimport.cache.OffHeapNumberArray to protected isByteUniform(value long) : boolean from class org.neo4j.unsafe.impl.batchimport.cache.OffHeapRegularNumberArray | From | To | |
Push Down Method protected addressOf(index long) : long from class org.neo4j.unsafe.impl.batchimport.cache.OffHeapNumberArray to protected addressOf(index long) : long from class org.neo4j.unsafe.impl.batchimport.cache.OffHeapRegularNumberArray | From | To | |
Rename Variable | 2 | ||
Rename Variable relGroupIndex : long to id : long in method public getFirstRel(nodeId long, visitor GroupVisitor) : long in class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCache | From | To | |
Rename Variable logicalPosition : long to index : long in method public allocate(type int, direction Direction, relId long, incrementCount boolean) : long in class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCache.RelGroupCache | From | To | |
Replace Variable With Attribute | 4 | ||
Replace Variable With Attribute link : NodeRelationshipCache to cache : NodeRelationshipCache in method public shouldAddGroupAfterTheFirst() : void in class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCacheTest | From | To | |
Replace Variable With Attribute link : NodeRelationshipCache to cache : NodeRelationshipCache in method public shouldAddGroupInTheMiddleIfTwo() : void in class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCacheTest | From | To | |
Replace Variable With Attribute link : NodeRelationshipCache to cache : NodeRelationshipCache in method public shouldGoThroughThePhases() : void in class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCacheTest | From | To | |
Replace Variable With Attribute link : NodeRelationshipCache to cache : NodeRelationshipCache in method public shouldAddGroupBeforeTheFirst() : void in class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCacheTest | From | To | |
Extract Superclass | 2 | ||
Extract Superclass org.neo4j.unsafe.impl.batchimport.cache.BaseNumberArray from classes [org.neo4j.unsafe.impl.batchimport.cache.HeapNumberArray, org.neo4j.unsafe.impl.batchimport.cache.OffHeapNumberArray] | From | To | |
Extract Superclass org.neo4j.unsafe.impl.batchimport.cache.OffHeapRegularNumberArray from classes [org.neo4j.unsafe.impl.batchimport.cache.OffHeapIntArray, org.neo4j.unsafe.impl.batchimport.cache.OffHeapLongArray] | From | To | |
Change Attribute Type | 2 | ||
Change Attribute Type array : LongArray to array : ByteArray in class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCache | From | To | |
Change Attribute Type array : LongArray to array : ByteArray in class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCache.RelGroupCache | From | To | |
Rename Parameter | 2 | ||
Rename Parameter shift : int to itemSize : int in method protected OffHeapNumberArray(length long, itemSize int, base long) in class org.neo4j.unsafe.impl.batchimport.cache.OffHeapNumberArray | From | To | |
Rename Parameter field : long to nodeId : long in method private isDense(array ByteArray, nodeId long) : boolean in class org.neo4j.unsafe.impl.batchimport.cache.NodeRelationshipCache | From | To |