7477c5b57e3201a7c2f9d256e845c7328537ac7f
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 28
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Method | 1 | ||
| Rename Method private getLastOffsetFromKafka(consumer SimpleConsumer, partitions List<KafkaTopicPartitionState<TopicAndPartition>>, whichTime long) : void renamed to private requestAndSetSpecificTimeOffsetsFromKafka(consumer SimpleConsumer, partitions List<KafkaTopicPartitionState<TopicAndPartition>>, whichTime long) : void in class org.apache.flink.streaming.connectors.kafka.internals.SimpleConsumerThread | From | To | |
| Move Method | 1 | ||
| Move Method private getInvalidOffsetBehavior(config Properties) : long from class org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer08 to private getInvalidOffsetBehavior(config Properties) : long from class org.apache.flink.streaming.connectors.kafka.internals.Kafka08Fetcher | From | To | |
| Rename Variable | 3 | ||
| Rename Variable zkOffset : Long to offset : Long in method public runFetchLoop() : void in class org.apache.flink.streaming.connectors.kafka.internals.Kafka08Fetcher | From | To | |
| Rename Variable fetchedOffset : long to partitionList : List<TopicPartition> in method public run() : void in class org.apache.flink.streaming.connectors.kafka.internal.KafkaConsumerThread | From | To | |
| Rename Variable state1 : HashMap<KafkaTopicPartition,Long> to expectedState : HashMap<KafkaTopicPartition,Long> in method public testRestoreFromFlink11() : void in class org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBaseMigrationTest | From | To | |
| Replace Variable With Attribute | 1 | ||
| Replace Variable With Attribute props : Properties to standardProps : Properties in method public KafkaOffsetHandlerImpl() in class org.apache.flink.streaming.connectors.kafka.KafkaTestEnvironmentImpl.KafkaOffsetHandlerImpl | From | To | |
| Parameterize Variable | 1 | ||
| Parameterize Variable requestInfo : Map<TopicAndPartition,PartitionOffsetRequestInfo> to partitionToRequestInfo : Map<TopicAndPartition,PartitionOffsetRequestInfo> in method private requestAndSetOffsetsFromKafka(consumer SimpleConsumer, partitionStates List<KafkaTopicPartitionState<TopicAndPartition>>, partitionToRequestInfo Map<TopicAndPartition,PartitionOffsetRequestInfo>) : void in class org.apache.flink.streaming.connectors.kafka.internals.SimpleConsumerThread | From | To | |
| Move And Rename Attribute | 1 | ||
| Move And Rename Attribute private invalidOffsetBehavior : long renamed to protected startupMode : StartupMode and moved from class org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer08 to class org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase | From | To | |
| Rename Attribute | 1 | ||
| Rename Attribute restoreToOffset : HashMap<KafkaTopicPartition,Long> to restoredState : HashMap<KafkaTopicPartition,Long> in class org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase | From | To | |
| Change Variable Type | 1 | ||
| Change Variable Type fetchedOffset : long to partitionList : List<TopicPartition> in method public run() : void in class org.apache.flink.streaming.connectors.kafka.internal.KafkaConsumerThread | From | To | |
| Extract Method | 1 | ||
| Extract Method private requestAndSetOffsetsFromKafka(consumer SimpleConsumer, partitionStates List<KafkaTopicPartitionState<TopicAndPartition>>, partitionToRequestInfo Map<TopicAndPartition,PartitionOffsetRequestInfo>) : void extracted from private getLastOffsetFromKafka(consumer SimpleConsumer, partitions List<KafkaTopicPartitionState<TopicAndPartition>>, whichTime long) : void in class org.apache.flink.streaming.connectors.kafka.internals.SimpleConsumerThread | From | To | |
| Rename Parameter | 1 | ||
| Rename Parameter partitions : List<KafkaTopicPartitionState<TopicAndPartition>> to partitionStates : List<KafkaTopicPartitionState<TopicAndPartition>> in method private requestAndSetOffsetsFromKafka(consumer SimpleConsumer, partitionStates List<KafkaTopicPartitionState<TopicAndPartition>>, partitionToRequestInfo Map<TopicAndPartition,PartitionOffsetRequestInfo>) : void in class org.apache.flink.streaming.connectors.kafka.internals.SimpleConsumerThread | From | To |