From 9a554f5f9bdc5750f1b47088eb3b3038527c89dc Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 15 Jun 2024 14:42:52 +0200 Subject: [PATCH] popular: 1.0.0 - Renamed packages and classes -- MOVE --- .../{query => popular}/QueryApplication.java | 0 .../QueryApplicationConfiguration.java | 0 .../QueryApplicationProperties.java | 0 .../{query => popular}/QueryController.java | 0 .../QueryStreamProcessor.java | 0 .../wordcount/{query => popular}/Ranking.java | 0 .../{query/Key.java => popular/Word.java} | 0 .../Entry.java => popular/WordCounter.java} | 0 .../de/juplo/kafka/wordcount/query/User.java | 18 ------------------ .../kafka/wordcount/query/UserRanking.java | 14 -------------- .../TestWordCounter.java} | 0 .../{query => popular}/QueryApplicationIT.java | 0 .../QueryStreamProcessorTopologyTest.java | 0 .../wordcount/{query => popular}/TestData.java | 0 14 files changed, 32 deletions(-) rename src/main/java/de/juplo/kafka/wordcount/{query => popular}/QueryApplication.java (100%) rename src/main/java/de/juplo/kafka/wordcount/{query => popular}/QueryApplicationConfiguration.java (100%) rename src/main/java/de/juplo/kafka/wordcount/{query => popular}/QueryApplicationProperties.java (100%) rename src/main/java/de/juplo/kafka/wordcount/{query => popular}/QueryController.java (100%) rename src/main/java/de/juplo/kafka/wordcount/{query => popular}/QueryStreamProcessor.java (100%) rename src/main/java/de/juplo/kafka/wordcount/{query => popular}/Ranking.java (100%) rename src/main/java/de/juplo/kafka/wordcount/{query/Key.java => popular/Word.java} (100%) rename src/main/java/de/juplo/kafka/wordcount/{query/Entry.java => popular/WordCounter.java} (100%) delete mode 100644 src/main/java/de/juplo/kafka/wordcount/query/User.java delete mode 100644 src/main/java/de/juplo/kafka/wordcount/query/UserRanking.java rename src/test/java/de/juplo/kafka/wordcount/{top10/TestEntry.java => counter/TestWordCounter.java} (100%) rename src/test/java/de/juplo/kafka/wordcount/{query => popular}/QueryApplicationIT.java (100%) rename src/test/java/de/juplo/kafka/wordcount/{query => popular}/QueryStreamProcessorTopologyTest.java (100%) rename src/test/java/de/juplo/kafka/wordcount/{query => popular}/TestData.java (100%) diff --git a/src/main/java/de/juplo/kafka/wordcount/query/QueryApplication.java b/src/main/java/de/juplo/kafka/wordcount/popular/QueryApplication.java similarity index 100% rename from src/main/java/de/juplo/kafka/wordcount/query/QueryApplication.java rename to src/main/java/de/juplo/kafka/wordcount/popular/QueryApplication.java diff --git a/src/main/java/de/juplo/kafka/wordcount/query/QueryApplicationConfiguration.java b/src/main/java/de/juplo/kafka/wordcount/popular/QueryApplicationConfiguration.java similarity index 100% rename from src/main/java/de/juplo/kafka/wordcount/query/QueryApplicationConfiguration.java rename to src/main/java/de/juplo/kafka/wordcount/popular/QueryApplicationConfiguration.java diff --git a/src/main/java/de/juplo/kafka/wordcount/query/QueryApplicationProperties.java b/src/main/java/de/juplo/kafka/wordcount/popular/QueryApplicationProperties.java similarity index 100% rename from src/main/java/de/juplo/kafka/wordcount/query/QueryApplicationProperties.java rename to src/main/java/de/juplo/kafka/wordcount/popular/QueryApplicationProperties.java diff --git a/src/main/java/de/juplo/kafka/wordcount/query/QueryController.java b/src/main/java/de/juplo/kafka/wordcount/popular/QueryController.java similarity index 100% rename from src/main/java/de/juplo/kafka/wordcount/query/QueryController.java rename to src/main/java/de/juplo/kafka/wordcount/popular/QueryController.java diff --git a/src/main/java/de/juplo/kafka/wordcount/query/QueryStreamProcessor.java b/src/main/java/de/juplo/kafka/wordcount/popular/QueryStreamProcessor.java similarity index 100% rename from src/main/java/de/juplo/kafka/wordcount/query/QueryStreamProcessor.java rename to src/main/java/de/juplo/kafka/wordcount/popular/QueryStreamProcessor.java diff --git a/src/main/java/de/juplo/kafka/wordcount/query/Ranking.java b/src/main/java/de/juplo/kafka/wordcount/popular/Ranking.java similarity index 100% rename from src/main/java/de/juplo/kafka/wordcount/query/Ranking.java rename to src/main/java/de/juplo/kafka/wordcount/popular/Ranking.java diff --git a/src/main/java/de/juplo/kafka/wordcount/query/Key.java b/src/main/java/de/juplo/kafka/wordcount/popular/Word.java similarity index 100% rename from src/main/java/de/juplo/kafka/wordcount/query/Key.java rename to src/main/java/de/juplo/kafka/wordcount/popular/Word.java diff --git a/src/main/java/de/juplo/kafka/wordcount/query/Entry.java b/src/main/java/de/juplo/kafka/wordcount/popular/WordCounter.java similarity index 100% rename from src/main/java/de/juplo/kafka/wordcount/query/Entry.java rename to src/main/java/de/juplo/kafka/wordcount/popular/WordCounter.java diff --git a/src/main/java/de/juplo/kafka/wordcount/query/User.java b/src/main/java/de/juplo/kafka/wordcount/query/User.java deleted file mode 100644 index f62b475..0000000 --- a/src/main/java/de/juplo/kafka/wordcount/query/User.java +++ /dev/null @@ -1,18 +0,0 @@ -package de.juplo.kafka.wordcount.query; - -import lombok.Data; -import lombok.EqualsAndHashCode; - - -@Data -@EqualsAndHashCode(of = "username") -public class User -{ - public enum Sex { FEMALE, MALE, OTHER } - - private String username; - - private String firstName; - private String lastName; - private Sex sex; -} diff --git a/src/main/java/de/juplo/kafka/wordcount/query/UserRanking.java b/src/main/java/de/juplo/kafka/wordcount/query/UserRanking.java deleted file mode 100644 index 9ca765a..0000000 --- a/src/main/java/de/juplo/kafka/wordcount/query/UserRanking.java +++ /dev/null @@ -1,14 +0,0 @@ -package de.juplo.kafka.wordcount.query; - -import lombok.*; - - -@Data -@AllArgsConstructor(staticName = "of") -@NoArgsConstructor -public class UserRanking -{ - private String firstName; - private String lastName; - private Entry[] top10; -} diff --git a/src/test/java/de/juplo/kafka/wordcount/top10/TestEntry.java b/src/test/java/de/juplo/kafka/wordcount/counter/TestWordCounter.java similarity index 100% rename from src/test/java/de/juplo/kafka/wordcount/top10/TestEntry.java rename to src/test/java/de/juplo/kafka/wordcount/counter/TestWordCounter.java diff --git a/src/test/java/de/juplo/kafka/wordcount/query/QueryApplicationIT.java b/src/test/java/de/juplo/kafka/wordcount/popular/QueryApplicationIT.java similarity index 100% rename from src/test/java/de/juplo/kafka/wordcount/query/QueryApplicationIT.java rename to src/test/java/de/juplo/kafka/wordcount/popular/QueryApplicationIT.java diff --git a/src/test/java/de/juplo/kafka/wordcount/query/QueryStreamProcessorTopologyTest.java b/src/test/java/de/juplo/kafka/wordcount/popular/QueryStreamProcessorTopologyTest.java similarity index 100% rename from src/test/java/de/juplo/kafka/wordcount/query/QueryStreamProcessorTopologyTest.java rename to src/test/java/de/juplo/kafka/wordcount/popular/QueryStreamProcessorTopologyTest.java diff --git a/src/test/java/de/juplo/kafka/wordcount/query/TestData.java b/src/test/java/de/juplo/kafka/wordcount/popular/TestData.java similarity index 100% rename from src/test/java/de/juplo/kafka/wordcount/query/TestData.java rename to src/test/java/de/juplo/kafka/wordcount/popular/TestData.java -- 2.20.1