56ae08e2b3ef6b1183d8f88b36cb42749b5c221e
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 16
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move And Inline Method | 1 | ||
Move And Inline Method public snapshotState(checkpointId long, checkpointTimestamp long) : Long moved from class org.apache.flink.streaming.api.functions.source.StatefulSequenceSource to class org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator & inlined to public getStateSnapshotFromFunction(checkpointId long, timestamp long) : Map<String,PartitionedStateHandle> | From | To | |
Change Parameter Type | 3 | ||
Change Parameter Type operator : OneInputStreamOperator<?,T> to operator : OneInputStreamOperator in method public CopyingOperatorCollector(operator OneInputStreamOperator, serializer TypeSerializer<T>) in class org.apache.flink.streaming.runtime.tasks.OutputHandler.CopyingOperatorCollector | From | To | |
Change Parameter Type state : Serializable to state : Map<String,PartitionedStateHandle> in method public restoreInitialState(state Map<String,PartitionedStateHandle>) : void in class org.apache.flink.streaming.api.operators.StatefulStreamOperator | From | To | |
Change Parameter Type state : Serializable to snapshots : Map<String,PartitionedStateHandle> in method public restoreInitialState(snapshots Map<String,PartitionedStateHandle>) : void in class org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator | From | To | |
Rename Variable | 2 | ||
Rename Variable chainedOperator : OneInputStreamOperator<?,?> to stateEntry : Entry<String,PartitionedStateHandle> in method public confirmCheckpoint(checkpointId long, stateHandle SerializedValue<StateHandle<?>>) : void in class org.apache.flink.streaming.runtime.tasks.StreamTask | From | To | |
Rename Variable state : StateHandle<Serializable> to stateHandle : StateHandle<Serializable> in method public triggerCheckpoint(checkpointId long, timestamp long) : void in class org.apache.flink.streaming.runtime.tasks.StreamTask | From | To | |
Change Return Type | 2 | ||
Change Return Type Serializable to Map<String,PartitionedStateHandle> in method public getStateSnapshotFromFunction(checkpointId long, timestamp long) : Map<String,PartitionedStateHandle> in class org.apache.flink.streaming.api.operators.StatefulStreamOperator | From | To | |
Change Return Type Serializable to Map<String,PartitionedStateHandle> in method public getStateSnapshotFromFunction(checkpointId long, timestamp long) : Map<String,PartitionedStateHandle> in class org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator | From | To | |
Change Variable Type | 4 | ||
Change Variable Type chainedStates : List<Serializable> to chainedStates : List<Map<String,PartitionedStateHandle>> in method public triggerCheckpoint(checkpointId long, timestamp long) : void in class org.apache.flink.streaming.runtime.tasks.StreamTask | From | To | |
Change Variable Type snapshots : Map<String,Map<Serializable,StateHandle<Serializable>>> to snapshots : Map<String,PartitionedStateHandle> in method public getStateSnapshotFromFunction(checkpointId long, timestamp long) : Map<String,PartitionedStateHandle> in class org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator | From | To | |
Change Variable Type chainedOperator : OneInputStreamOperator<?,?> to stateEntry : Entry<String,PartitionedStateHandle> in method public confirmCheckpoint(checkpointId long, stateHandle SerializedValue<StateHandle<?>>) : void in class org.apache.flink.streaming.runtime.tasks.StreamTask | From | To | |
Change Variable Type snapshot : Entry<String,Map<Serializable,StateHandle<Serializable>>> to snapshot : Entry<String,PartitionedStateHandle> in method public restoreInitialState(snapshots Map<String,PartitionedStateHandle>) : void in class org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator | From | To | |
Extract Method | 2 | ||
Extract Method private getState(name String) : StreamOperatorState<?,?> extracted from public getOperatorState(name String, defaultState S, checkpointer StateCheckpointer<S,C>) : OperatorState<S> in class org.apache.flink.streaming.runtime.tasks.StreamingRuntimeContext | From | To | |
Extract Method private getState(name String) : StreamOperatorState<?,?> extracted from public getOperatorState(name String, defaultState S) : OperatorState<S> in class org.apache.flink.streaming.runtime.tasks.StreamingRuntimeContext | From | To | |
Inline Variable | 1 | ||
Inline Variable userState : Serializable in method public triggerCheckpoint(checkpointId long, timestamp long) : void from class org.apache.flink.streaming.runtime.tasks.StreamTask | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type collected : long to collected : OperatorState<Long> in class org.apache.flink.streaming.api.functions.source.StatefulSequenceSource | From | To | |
Rename Parameter | 2 | ||
Rename Parameter state : SerializedValue<StateHandle<?>> to stateHandle : SerializedValue<StateHandle<?>> in method public confirmCheckpoint(checkpointId long, stateHandle SerializedValue<StateHandle<?>>) : void in class org.apache.flink.streaming.runtime.tasks.StreamTask | From | To | |
Rename Parameter state : Serializable to snapshots : Map<String,PartitionedStateHandle> in method public restoreInitialState(snapshots Map<String,PartitionedStateHandle>) : void in class org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator | From | To |