dbe1d3884558b806ab491a55c2138121cdcb29bb
Files Diff
- Added: 0
- Removed: 1
- Renamed: 0
- Modified: 14
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method private createMemoryIndex(descriptor SegmentDescriptor) : OffsetIndex renamed to private createIndex(descriptor SegmentDescriptor) : OffsetIndex in class net.kuujo.copycat.io.storage.SegmentManager | From | To | |
Rename Method public setPersistenceLevel(level PersistenceLevel) : T renamed to protected reset() : T in class net.kuujo.copycat.io.storage.Entry | From | To | |
Inline Method | 3 | ||
Inline Method private append(entry Entry, buffer Buffer, offsetIndex OffsetIndex) : long inlined to public append(entry Entry) : long in class net.kuujo.copycat.io.storage.Segment | From | To | |
Inline Method private get(index long, buffer Buffer, position long, length int, persistenceLevel PersistenceLevel) : T inlined to public get(index long) : T in class net.kuujo.copycat.io.storage.Segment | From | To | |
Inline Method private isEmpty(index OffsetIndex) : boolean inlined to public isEmpty() : boolean in class net.kuujo.copycat.io.storage.Segment | From | To | |
Rename Variable | 1 | ||
Rename Variable previousPosition : long to position : long in method public truncate(offset int) : long in class net.kuujo.copycat.io.storage.OffsetIndex | From | To | |
Change Return Type | 1 | ||
Change Return Type void to long in method public truncate(offset int) : long in class net.kuujo.copycat.io.storage.OffsetIndex | From | To | |
Rename Attribute | 2 | ||
Rename Attribute diskBuffer : Buffer to buffer : Buffer in class net.kuujo.copycat.io.storage.Segment | From | To | |
Rename Attribute persistenceLevel : PersistenceLevel to size : int in class net.kuujo.copycat.io.storage.Entry | From | To | |
Inline Variable | 2 | ||
Inline Variable offset : int in method public clean(index long) : Segment from class net.kuujo.copycat.io.storage.Segment | From | To | |
Inline Variable offset : int in method public compact(firstIndex long) : Segment from class net.kuujo.copycat.io.storage.Segment | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type persistenceLevel : PersistenceLevel to size : int in class net.kuujo.copycat.io.storage.Entry | From | To | |
Rename Parameter | 3 | ||
Rename Parameter diskBuffer : Buffer to buffer : Buffer in method package Segment(buffer Buffer, descriptor SegmentDescriptor, offsetIndex OffsetIndex, serializer Serializer) in class net.kuujo.copycat.io.storage.Segment | From | To | |
Rename Parameter diskBuffer : Buffer to buffer : Buffer in method package open(buffer Buffer, descriptor SegmentDescriptor, offsetIndex OffsetIndex, serializer Serializer) : Segment in class net.kuujo.copycat.io.storage.Segment | From | To | |
Rename Parameter diskIndex : OffsetIndex to offsetIndex : OffsetIndex in method package Segment(buffer Buffer, descriptor SegmentDescriptor, offsetIndex OffsetIndex, serializer Serializer) in class net.kuujo.copycat.io.storage.Segment | From | To |