From 86aff281abff72fd4b6eb0968b6c064c0f2eb630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de> Date: Thu, 24 Feb 2022 19:16:58 +0100 Subject: [PATCH] Refactor package names for Beam --- .../commons/beam/AbstractPipelineFactory.java | 4 ++-- .../benchmarks}/commons/beam/BeamService.java | 2 +- .../commons/beam/ConfigurationKeys.java | 2 +- .../kafka/ActivePowerRecordDeserializer.java | 2 +- .../commons/beam/kafka/EventTimePolicy.java | 2 +- .../KafkaActivePowerTimestampReader.java | 2 +- .../beam/kafka/KafkaGenericReader.java | 2 +- .../beam/kafka/KafkaWriterTransformation.java | 2 +- .../uc1-beam-flink/build.gradle | 2 +- .../uc1/beam/flink}/Uc1BeamFlink.java | 5 ++-- .../uc1-beam-samza/build.gradle | 2 +- .../uc1/beam/samza}/Uc1BeamSamza.java | 5 ++-- .../uc1/beam}/ConverterAdapter.java | 2 +- .../benchmarks/uc1/beam}/GenericSink.java | 2 +- .../benchmarks/uc1/beam}/PipelineFactory.java | 6 ++--- .../benchmarks/uc1/beam}/SinkFactory.java | 2 +- .../benchmarks/uc1/beam}/SinkType.java | 4 ++-- .../benchmarks/uc1/beam}/WriterAdapter.java | 2 +- .../uc1/beam}/firestore/DocumentMapper.java | 2 +- .../uc1/beam}/firestore/FirestoreConfig.java | 2 +- .../uc1/beam}/firestore/FirestoreSink.java | 2 +- .../firestore/UpdateOperationMapper.java | 2 +- .../uc2-beam-flink/build.gradle | 2 +- .../uc2/beam/flink}/Uc2BeamFlink.java | 5 ++-- .../uc2-beam-samza/build.gradle | 2 +- .../uc2/beam/samza}/Uc2BeamSamza.java | 5 ++-- .../benchmarks/uc2/beam}/PipelineFactory.java | 10 ++++---- .../uc2/beam}/StatsAggregation.java | 2 +- .../benchmarks/uc2/beam}/StatsToString.java | 2 +- .../uc3-beam-flink/build.gradle | 2 +- .../uc3/beam/flink}/Uc3BeamFlink.java | 5 ++-- .../uc3-beam-samza/build.gradle | 2 +- .../uc3/beam/samza}/Uc3BeamSamza.java | 5 ++-- .../benchmarks/uc3/beam}/HourOfDayKey.java | 2 +- .../uc3/beam}/HourOfDayKeyFactory.java | 2 +- .../uc3/beam}/HourOfDayKeySerde.java | 2 +- .../uc3/beam}/HourOfDayWithStats.java | 2 +- .../uc3/beam}/HourOfDaykeyCoder.java | 2 +- .../benchmarks/uc3/beam}/MapTimeFormat.java | 2 +- .../benchmarks/uc3/beam}/PipelineFactory.java | 10 ++++---- .../uc3/beam}/StatsAggregation.java | 2 +- .../benchmarks/uc3/beam}/StatsKeyFactory.java | 2 +- .../uc4-beam-flink/build.gradle | 2 +- .../uc4/beam/flink}/Uc4BeamFlink.java | 5 ++-- .../uc4-beam-samza/build.gradle | 2 +- .../uc4/beam/samza}/Uc4BeamSamza.java | 5 ++-- ...gatedActivePowerRecordEventTimePolicy.java | 2 +- .../uc4/beam}/AggregatedToActive.java | 2 +- .../uc4/beam}/DuplicateAsFlatMap.java | 2 +- .../benchmarks/uc4/beam}/FilterEvents.java | 2 +- .../uc4/beam}/FilterNullValues.java | 2 +- .../uc4/beam}/GenerateParentsFn.java | 2 +- .../benchmarks/uc4/beam}/PipelineFactory.java | 24 +++++++++---------- .../uc4/beam}/RecordAggregation.java | 2 +- .../benchmarks/uc4/beam}/SensorParentKey.java | 2 +- .../uc4/beam}/SetIdForAggregated.java | 2 +- .../benchmarks/uc4/beam}/SetKeyToGroup.java | 2 +- .../uc4/beam}/UpdateChildParentPairs.java | 2 +- .../AggregatedActivePowerRecordCoder.java | 2 +- ...gregatedActivePowerRecordDeserializer.java | 2 +- ...AggregatedActivePowerRecordSerializer.java | 2 +- .../uc4/beam}/serialization/EventCoder.java | 2 +- .../serialization/EventDeserializer.java | 2 +- .../serialization/SensorParentKeyCoder.java | 4 ++-- .../serialization/SensorParentKeySerde.java | 4 ++-- 65 files changed, 106 insertions(+), 98 deletions(-) rename theodolite-benchmarks/beam-commons/src/main/java/{theodolite => rocks/theodolite/benchmarks}/commons/beam/AbstractPipelineFactory.java (95%) rename theodolite-benchmarks/beam-commons/src/main/java/{theodolite => rocks/theodolite/benchmarks}/commons/beam/BeamService.java (97%) rename theodolite-benchmarks/beam-commons/src/main/java/{theodolite => rocks/theodolite/benchmarks}/commons/beam/ConfigurationKeys.java (96%) rename theodolite-benchmarks/beam-commons/src/main/java/{theodolite => rocks/theodolite/benchmarks}/commons/beam/kafka/ActivePowerRecordDeserializer.java (87%) rename theodolite-benchmarks/beam-commons/src/main/java/{theodolite => rocks/theodolite/benchmarks}/commons/beam/kafka/EventTimePolicy.java (94%) rename theodolite-benchmarks/beam-commons/src/main/java/{theodolite => rocks/theodolite/benchmarks}/commons/beam/kafka/KafkaActivePowerTimestampReader.java (97%) rename theodolite-benchmarks/beam-commons/src/main/java/{theodolite => rocks/theodolite/benchmarks}/commons/beam/kafka/KafkaGenericReader.java (96%) rename theodolite-benchmarks/beam-commons/src/main/java/{theodolite => rocks/theodolite/benchmarks}/commons/beam/kafka/KafkaWriterTransformation.java (97%) rename theodolite-benchmarks/uc1-beam-flink/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam/flink}/Uc1BeamFlink.java (81%) rename theodolite-benchmarks/uc1-beam-samza/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam/samza}/Uc1BeamSamza.java (83%) rename theodolite-benchmarks/uc1-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam}/ConverterAdapter.java (96%) rename theodolite-benchmarks/uc1-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam}/GenericSink.java (96%) rename theodolite-benchmarks/uc1-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam}/PipelineFactory.java (89%) rename theodolite-benchmarks/uc1-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam}/SinkFactory.java (91%) rename theodolite-benchmarks/uc1-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam}/SinkType.java (92%) rename theodolite-benchmarks/uc1-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam}/WriterAdapter.java (94%) rename theodolite-benchmarks/uc1-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam}/firestore/DocumentMapper.java (96%) rename theodolite-benchmarks/uc1-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam}/firestore/FirestoreConfig.java (93%) rename theodolite-benchmarks/uc1-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam}/firestore/FirestoreSink.java (96%) rename theodolite-benchmarks/uc1-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc1/beam}/firestore/UpdateOperationMapper.java (88%) rename theodolite-benchmarks/uc2-beam-flink/src/main/java/{application => rocks/theodolite/benchmarks/uc2/beam/flink}/Uc2BeamFlink.java (76%) rename theodolite-benchmarks/uc2-beam-samza/src/main/java/{application => rocks/theodolite/benchmarks/uc2/beam/samza}/Uc2BeamSamza.java (84%) rename theodolite-benchmarks/uc2-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc2/beam}/PipelineFactory.java (89%) rename theodolite-benchmarks/uc2-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc2/beam}/StatsAggregation.java (96%) rename theodolite-benchmarks/uc2-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc2/beam}/StatsToString.java (91%) rename theodolite-benchmarks/uc3-beam-flink/src/main/java/{application => rocks/theodolite/benchmarks/uc3/beam/flink}/Uc3BeamFlink.java (84%) rename theodolite-benchmarks/uc3-beam-samza/src/main/java/{application => rocks/theodolite/benchmarks/uc3/beam/samza}/Uc3BeamSamza.java (84%) rename theodolite-benchmarks/uc3-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc3/beam}/HourOfDayKey.java (93%) rename theodolite-benchmarks/uc3-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc3/beam}/HourOfDayKeyFactory.java (92%) rename theodolite-benchmarks/uc3-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc3/beam}/HourOfDayKeySerde.java (95%) rename theodolite-benchmarks/uc3-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc3/beam}/HourOfDayWithStats.java (93%) rename theodolite-benchmarks/uc3-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc3/beam}/HourOfDaykeyCoder.java (97%) rename theodolite-benchmarks/uc3-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc3/beam}/MapTimeFormat.java (95%) rename theodolite-benchmarks/uc3-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc3/beam}/PipelineFactory.java (92%) rename theodolite-benchmarks/uc3-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc3/beam}/StatsAggregation.java (96%) rename theodolite-benchmarks/uc3-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc3/beam}/StatsKeyFactory.java (87%) rename theodolite-benchmarks/uc4-beam-flink/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam/flink}/Uc4BeamFlink.java (70%) rename theodolite-benchmarks/uc4-beam-samza/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam/samza}/Uc4BeamSamza.java (85%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/AggregatedActivePowerRecordEventTimePolicy.java (96%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/AggregatedToActive.java (94%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/DuplicateAsFlatMap.java (98%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/FilterEvents.java (92%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/FilterNullValues.java (91%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/GenerateParentsFn.java (97%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/PipelineFactory.java (93%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/RecordAggregation.java (97%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/SensorParentKey.java (93%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/SetIdForAggregated.java (94%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/SetKeyToGroup.java (92%) rename theodolite-benchmarks/uc4-beam/src/main/java/{application => rocks/theodolite/benchmarks/uc4/beam}/UpdateChildParentPairs.java (96%) rename theodolite-benchmarks/uc4-beam/src/main/java/{ => rocks/theodolite/benchmarks/uc4/beam}/serialization/AggregatedActivePowerRecordCoder.java (96%) rename theodolite-benchmarks/uc4-beam/src/main/java/{ => rocks/theodolite/benchmarks/uc4/beam}/serialization/AggregatedActivePowerRecordDeserializer.java (86%) rename theodolite-benchmarks/uc4-beam/src/main/java/{ => rocks/theodolite/benchmarks/uc4/beam}/serialization/AggregatedActivePowerRecordSerializer.java (86%) rename theodolite-benchmarks/uc4-beam/src/main/java/{ => rocks/theodolite/benchmarks/uc4/beam}/serialization/EventCoder.java (97%) rename theodolite-benchmarks/uc4-beam/src/main/java/{ => rocks/theodolite/benchmarks/uc4/beam}/serialization/EventDeserializer.java (94%) rename theodolite-benchmarks/uc4-beam/src/main/java/{ => rocks/theodolite/benchmarks/uc4/beam}/serialization/SensorParentKeyCoder.java (94%) rename theodolite-benchmarks/uc4-beam/src/main/java/{ => rocks/theodolite/benchmarks/uc4/beam}/serialization/SensorParentKeySerde.java (88%) diff --git a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/AbstractPipelineFactory.java b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/AbstractPipelineFactory.java similarity index 95% rename from theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/AbstractPipelineFactory.java rename to theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/AbstractPipelineFactory.java index 78610bd7f..8bf913fc2 100644 --- a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/AbstractPipelineFactory.java +++ b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/AbstractPipelineFactory.java @@ -1,4 +1,4 @@ -package theodolite.commons.beam; +package rocks.theodolite.benchmarks.commons.beam; import io.confluent.kafka.serializers.AbstractKafkaAvroSerDeConfig; import io.confluent.kafka.serializers.KafkaAvroDeserializerConfig; @@ -9,7 +9,7 @@ import org.apache.beam.sdk.coders.CoderRegistry; import org.apache.beam.sdk.options.PipelineOptions; import org.apache.commons.configuration2.Configuration; import org.apache.kafka.clients.consumer.ConsumerConfig; -import theodolite.commons.beam.kafka.KafkaActivePowerTimestampReader; +import rocks.theodolite.benchmarks.commons.beam.kafka.KafkaActivePowerTimestampReader; /** * Abstract factory class for creating Beam pipelines from a {@link Configuration} and diff --git a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/BeamService.java b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/BeamService.java similarity index 97% rename from theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/BeamService.java rename to theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/BeamService.java index 62a9b374a..dd410f8d5 100644 --- a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/BeamService.java +++ b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/BeamService.java @@ -1,4 +1,4 @@ -package theodolite.commons.beam; +package rocks.theodolite.benchmarks.commons.beam; import java.util.function.Function; import org.apache.beam.sdk.Pipeline; diff --git a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/ConfigurationKeys.java b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/ConfigurationKeys.java similarity index 96% rename from theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/ConfigurationKeys.java rename to theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/ConfigurationKeys.java index 1e4dc593c..487b8de00 100644 --- a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/ConfigurationKeys.java +++ b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/ConfigurationKeys.java @@ -1,4 +1,4 @@ -package theodolite.commons.beam; +package rocks.theodolite.benchmarks.commons.beam; /** * Keys to access configuration parameters. diff --git a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/ActivePowerRecordDeserializer.java b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/ActivePowerRecordDeserializer.java similarity index 87% rename from theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/ActivePowerRecordDeserializer.java rename to theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/ActivePowerRecordDeserializer.java index c53dde3d5..0c8d3a4a8 100644 --- a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/ActivePowerRecordDeserializer.java +++ b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/ActivePowerRecordDeserializer.java @@ -1,4 +1,4 @@ -package theodolite.commons.beam.kafka; +package rocks.theodolite.benchmarks.commons.beam.kafka; import io.confluent.kafka.streams.serdes.avro.SpecificAvroDeserializer; import org.apache.kafka.common.serialization.Deserializer; diff --git a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/EventTimePolicy.java b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/EventTimePolicy.java similarity index 94% rename from theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/EventTimePolicy.java rename to theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/EventTimePolicy.java index e56896867..62e563415 100644 --- a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/EventTimePolicy.java +++ b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/EventTimePolicy.java @@ -1,4 +1,4 @@ -package theodolite.commons.beam.kafka; +package rocks.theodolite.benchmarks.commons.beam.kafka; import java.util.Optional; import org.apache.beam.sdk.io.kafka.KafkaRecord; diff --git a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/KafkaActivePowerTimestampReader.java b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/KafkaActivePowerTimestampReader.java similarity index 97% rename from theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/KafkaActivePowerTimestampReader.java rename to theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/KafkaActivePowerTimestampReader.java index 7a48bd71d..e22d5c8ee 100644 --- a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/KafkaActivePowerTimestampReader.java +++ b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/KafkaActivePowerTimestampReader.java @@ -1,4 +1,4 @@ -package theodolite.commons.beam.kafka; +package rocks.theodolite.benchmarks.commons.beam.kafka; import java.util.Map; import org.apache.beam.sdk.coders.AvroCoder; diff --git a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/KafkaGenericReader.java b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/KafkaGenericReader.java similarity index 96% rename from theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/KafkaGenericReader.java rename to theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/KafkaGenericReader.java index e513c3a0e..000ddcdcc 100644 --- a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/KafkaGenericReader.java +++ b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/KafkaGenericReader.java @@ -1,4 +1,4 @@ -package theodolite.commons.beam.kafka; +package rocks.theodolite.benchmarks.commons.beam.kafka; import java.util.Map; import org.apache.beam.sdk.io.kafka.KafkaIO; diff --git a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/KafkaWriterTransformation.java b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/KafkaWriterTransformation.java similarity index 97% rename from theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/KafkaWriterTransformation.java rename to theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/KafkaWriterTransformation.java index 6d33f6f01..e9131b513 100644 --- a/theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/KafkaWriterTransformation.java +++ b/theodolite-benchmarks/beam-commons/src/main/java/rocks/theodolite/benchmarks/commons/beam/kafka/KafkaWriterTransformation.java @@ -1,4 +1,4 @@ -package theodolite.commons.beam.kafka; +package rocks.theodolite.benchmarks.commons.beam.kafka; import java.util.Map; import org.apache.beam.sdk.io.kafka.KafkaIO; diff --git a/theodolite-benchmarks/uc1-beam-flink/build.gradle b/theodolite-benchmarks/uc1-beam-flink/build.gradle index cb707ddfd..fff1a0817 100644 --- a/theodolite-benchmarks/uc1-beam-flink/build.gradle +++ b/theodolite-benchmarks/uc1-beam-flink/build.gradle @@ -16,4 +16,4 @@ sourceSets { } } -mainClassName = "application.Uc1BeamFlink" +mainClassName = "rocks.theodolite.benchmarks.uc1.beam.flink.Uc1BeamFlink" diff --git a/theodolite-benchmarks/uc1-beam-flink/src/main/java/application/Uc1BeamFlink.java b/theodolite-benchmarks/uc1-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc1/beam/flink/Uc1BeamFlink.java similarity index 81% rename from theodolite-benchmarks/uc1-beam-flink/src/main/java/application/Uc1BeamFlink.java rename to theodolite-benchmarks/uc1-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc1/beam/flink/Uc1BeamFlink.java index 878d08537..e1317219f 100644 --- a/theodolite-benchmarks/uc1-beam-flink/src/main/java/application/Uc1BeamFlink.java +++ b/theodolite-benchmarks/uc1-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc1/beam/flink/Uc1BeamFlink.java @@ -1,7 +1,8 @@ -package application; +package rocks.theodolite.benchmarks.uc1.beam.flink; import org.apache.beam.runners.flink.FlinkRunner; -import theodolite.commons.beam.BeamService; +import rocks.theodolite.benchmarks.commons.beam.BeamService; +import rocks.theodolite.benchmarks.uc1.beam.PipelineFactory; /** * Implementation of the use case Database Storage using Apache Beam with the Flink Runner. To diff --git a/theodolite-benchmarks/uc1-beam-samza/build.gradle b/theodolite-benchmarks/uc1-beam-samza/build.gradle index 7489af605..fab142f6d 100644 --- a/theodolite-benchmarks/uc1-beam-samza/build.gradle +++ b/theodolite-benchmarks/uc1-beam-samza/build.gradle @@ -16,4 +16,4 @@ sourceSets { } } -mainClassName = "application.Uc1BeamSamza" +mainClassName = "rocks.theodolite.benchmarks.uc1.beam.samza.Uc1BeamSamza" diff --git a/theodolite-benchmarks/uc1-beam-samza/src/main/java/application/Uc1BeamSamza.java b/theodolite-benchmarks/uc1-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc1/beam/samza/Uc1BeamSamza.java similarity index 83% rename from theodolite-benchmarks/uc1-beam-samza/src/main/java/application/Uc1BeamSamza.java rename to theodolite-benchmarks/uc1-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc1/beam/samza/Uc1BeamSamza.java index 2e5cf8a19..d3455db71 100644 --- a/theodolite-benchmarks/uc1-beam-samza/src/main/java/application/Uc1BeamSamza.java +++ b/theodolite-benchmarks/uc1-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc1/beam/samza/Uc1BeamSamza.java @@ -1,7 +1,8 @@ -package application; +package rocks.theodolite.benchmarks.uc1.beam.samza; import org.apache.beam.runners.samza.SamzaRunner; -import theodolite.commons.beam.BeamService; +import rocks.theodolite.benchmarks.commons.beam.BeamService; +import rocks.theodolite.benchmarks.uc1.beam.PipelineFactory; /** * Implementation of the use case Database Storage using Apache Beam with the Samza Runner. To diff --git a/theodolite-benchmarks/uc1-beam/src/main/java/application/ConverterAdapter.java b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/ConverterAdapter.java similarity index 96% rename from theodolite-benchmarks/uc1-beam/src/main/java/application/ConverterAdapter.java rename to theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/ConverterAdapter.java index e368c3a06..08834a472 100644 --- a/theodolite-benchmarks/uc1-beam/src/main/java/application/ConverterAdapter.java +++ b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/ConverterAdapter.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc1.beam; import org.apache.beam.sdk.transforms.SimpleFunction; import org.apache.beam.sdk.values.TypeDescriptor; diff --git a/theodolite-benchmarks/uc1-beam/src/main/java/application/GenericSink.java b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/GenericSink.java similarity index 96% rename from theodolite-benchmarks/uc1-beam/src/main/java/application/GenericSink.java rename to theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/GenericSink.java index 04b47cd8c..04eae7998 100644 --- a/theodolite-benchmarks/uc1-beam/src/main/java/application/GenericSink.java +++ b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/GenericSink.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc1.beam; import org.apache.beam.sdk.transforms.MapElements; import org.apache.beam.sdk.transforms.PTransform; diff --git a/theodolite-benchmarks/uc1-beam/src/main/java/application/PipelineFactory.java b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/PipelineFactory.java similarity index 89% rename from theodolite-benchmarks/uc1-beam/src/main/java/application/PipelineFactory.java rename to theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/PipelineFactory.java index d8d7b172d..32658a21b 100644 --- a/theodolite-benchmarks/uc1-beam/src/main/java/application/PipelineFactory.java +++ b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/PipelineFactory.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc1.beam; import java.util.function.Function; import org.apache.beam.sdk.Pipeline; @@ -7,8 +7,8 @@ import org.apache.beam.sdk.coders.CoderRegistry; import org.apache.beam.sdk.options.PipelineOptions; import org.apache.beam.sdk.transforms.Values; import org.apache.commons.configuration2.Configuration; -import theodolite.commons.beam.AbstractPipelineFactory; -import theodolite.commons.beam.kafka.KafkaActivePowerTimestampReader; +import rocks.theodolite.benchmarks.commons.beam.AbstractPipelineFactory; +import rocks.theodolite.benchmarks.commons.beam.kafka.KafkaActivePowerTimestampReader; import titan.ccp.model.records.ActivePowerRecord; /** diff --git a/theodolite-benchmarks/uc1-beam/src/main/java/application/SinkFactory.java b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/SinkFactory.java similarity index 91% rename from theodolite-benchmarks/uc1-beam/src/main/java/application/SinkFactory.java rename to theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/SinkFactory.java index 91052827f..d4854293b 100644 --- a/theodolite-benchmarks/uc1-beam/src/main/java/application/SinkFactory.java +++ b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/SinkFactory.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc1.beam; import org.apache.beam.sdk.transforms.PTransform; import org.apache.beam.sdk.values.PCollection; diff --git a/theodolite-benchmarks/uc1-beam/src/main/java/application/SinkType.java b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/SinkType.java similarity index 92% rename from theodolite-benchmarks/uc1-beam/src/main/java/application/SinkType.java rename to theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/SinkType.java index 82ca2573e..da836815e 100644 --- a/theodolite-benchmarks/uc1-beam/src/main/java/application/SinkType.java +++ b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/SinkType.java @@ -1,10 +1,10 @@ -package application; +package rocks.theodolite.benchmarks.uc1.beam; -import application.firestore.FirestoreSink; import java.util.stream.Stream; import org.apache.beam.sdk.transforms.PTransform; import org.apache.beam.sdk.values.PCollection; import org.apache.commons.configuration2.Configuration; +import rocks.theodolite.benchmarks.uc1.beam.firestore.FirestoreSink; import rocks.theodolite.benchmarks.uc1.commons.logger.LogWriterFactory; import titan.ccp.model.records.ActivePowerRecord; diff --git a/theodolite-benchmarks/uc1-beam/src/main/java/application/WriterAdapter.java b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/WriterAdapter.java similarity index 94% rename from theodolite-benchmarks/uc1-beam/src/main/java/application/WriterAdapter.java rename to theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/WriterAdapter.java index eb9a2670c..4519515cf 100644 --- a/theodolite-benchmarks/uc1-beam/src/main/java/application/WriterAdapter.java +++ b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/WriterAdapter.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc1.beam; import org.apache.beam.sdk.transforms.DoFn; import rocks.theodolite.benchmarks.uc1.commons.DatabaseAdapter; diff --git a/theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/DocumentMapper.java b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/DocumentMapper.java similarity index 96% rename from theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/DocumentMapper.java rename to theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/DocumentMapper.java index ab4617ecd..f0a99ece6 100644 --- a/theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/DocumentMapper.java +++ b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/DocumentMapper.java @@ -1,4 +1,4 @@ -package application.firestore; +package rocks.theodolite.benchmarks.uc1.beam.firestore; import com.google.firestore.v1.Document; import com.google.firestore.v1.Value; diff --git a/theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/FirestoreConfig.java b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/FirestoreConfig.java similarity index 93% rename from theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/FirestoreConfig.java rename to theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/FirestoreConfig.java index eb62d69f9..1f5adfcdf 100644 --- a/theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/FirestoreConfig.java +++ b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/FirestoreConfig.java @@ -1,4 +1,4 @@ -package application.firestore; +package rocks.theodolite.benchmarks.uc1.beam.firestore; import com.google.auth.oauth2.GoogleCredentials; import com.google.cloud.firestore.FirestoreOptions; diff --git a/theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/FirestoreSink.java b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/FirestoreSink.java similarity index 96% rename from theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/FirestoreSink.java rename to theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/FirestoreSink.java index a1db24eeb..dfe3f240b 100644 --- a/theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/FirestoreSink.java +++ b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/FirestoreSink.java @@ -1,4 +1,4 @@ -package application.firestore; +package rocks.theodolite.benchmarks.uc1.beam.firestore; import com.google.cloud.firestore.DocumentSnapshot; import com.google.firestore.v1.Document; diff --git a/theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/UpdateOperationMapper.java b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/UpdateOperationMapper.java similarity index 88% rename from theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/UpdateOperationMapper.java rename to theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/UpdateOperationMapper.java index d67bed2ae..fc1170073 100644 --- a/theodolite-benchmarks/uc1-beam/src/main/java/application/firestore/UpdateOperationMapper.java +++ b/theodolite-benchmarks/uc1-beam/src/main/java/rocks/theodolite/benchmarks/uc1/beam/firestore/UpdateOperationMapper.java @@ -1,4 +1,4 @@ -package application.firestore; +package rocks.theodolite.benchmarks.uc1.beam.firestore; import com.google.firestore.v1.Document; import com.google.firestore.v1.Write; diff --git a/theodolite-benchmarks/uc2-beam-flink/build.gradle b/theodolite-benchmarks/uc2-beam-flink/build.gradle index d7a89fd59..095d166fc 100644 --- a/theodolite-benchmarks/uc2-beam-flink/build.gradle +++ b/theodolite-benchmarks/uc2-beam-flink/build.gradle @@ -16,4 +16,4 @@ sourceSets { } } -mainClassName = "application.Uc2BeamFlink" +mainClassName = "rocks.theodolite.benchmarks.uc2.beam.flink.Uc2BeamFlink" diff --git a/theodolite-benchmarks/uc2-beam-flink/src/main/java/application/Uc2BeamFlink.java b/theodolite-benchmarks/uc2-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc2/beam/flink/Uc2BeamFlink.java similarity index 76% rename from theodolite-benchmarks/uc2-beam-flink/src/main/java/application/Uc2BeamFlink.java rename to theodolite-benchmarks/uc2-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc2/beam/flink/Uc2BeamFlink.java index 28cc32e43..ab6a9992a 100644 --- a/theodolite-benchmarks/uc2-beam-flink/src/main/java/application/Uc2BeamFlink.java +++ b/theodolite-benchmarks/uc2-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc2/beam/flink/Uc2BeamFlink.java @@ -1,7 +1,8 @@ -package application; +package rocks.theodolite.benchmarks.uc2.beam.flink; import org.apache.beam.runners.flink.FlinkRunner; -import theodolite.commons.beam.BeamService; +import rocks.theodolite.benchmarks.commons.beam.BeamService; +import rocks.theodolite.benchmarks.uc2.beam.PipelineFactory; /** * Implementation of the use case Downsampling using Apache Beam with the Flink Runner. To execute diff --git a/theodolite-benchmarks/uc2-beam-samza/build.gradle b/theodolite-benchmarks/uc2-beam-samza/build.gradle index 67df31321..c8148e3bb 100644 --- a/theodolite-benchmarks/uc2-beam-samza/build.gradle +++ b/theodolite-benchmarks/uc2-beam-samza/build.gradle @@ -16,4 +16,4 @@ sourceSets { } } -mainClassName = "application.Uc2BeamSamza" +mainClassName = "rocks.theodolite.benchmarks.uc2.beam.samza.Uc2BeamSamza" diff --git a/theodolite-benchmarks/uc2-beam-samza/src/main/java/application/Uc2BeamSamza.java b/theodolite-benchmarks/uc2-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc2/beam/samza/Uc2BeamSamza.java similarity index 84% rename from theodolite-benchmarks/uc2-beam-samza/src/main/java/application/Uc2BeamSamza.java rename to theodolite-benchmarks/uc2-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc2/beam/samza/Uc2BeamSamza.java index 496f46279..80981818d 100644 --- a/theodolite-benchmarks/uc2-beam-samza/src/main/java/application/Uc2BeamSamza.java +++ b/theodolite-benchmarks/uc2-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc2/beam/samza/Uc2BeamSamza.java @@ -1,7 +1,8 @@ -package application; +package rocks.theodolite.benchmarks.uc2.beam.samza; import org.apache.beam.runners.samza.SamzaRunner; -import theodolite.commons.beam.BeamService; +import rocks.theodolite.benchmarks.commons.beam.BeamService; +import rocks.theodolite.benchmarks.uc2.beam.PipelineFactory; /** * Implementation of the use case Downsampling using Apache Beam with the Samza Runner. To run diff --git a/theodolite-benchmarks/uc2-beam/src/main/java/application/PipelineFactory.java b/theodolite-benchmarks/uc2-beam/src/main/java/rocks/theodolite/benchmarks/uc2/beam/PipelineFactory.java similarity index 89% rename from theodolite-benchmarks/uc2-beam/src/main/java/application/PipelineFactory.java rename to theodolite-benchmarks/uc2-beam/src/main/java/rocks/theodolite/benchmarks/uc2/beam/PipelineFactory.java index 03ec7446b..6de0b8f95 100644 --- a/theodolite-benchmarks/uc2-beam/src/main/java/application/PipelineFactory.java +++ b/theodolite-benchmarks/uc2-beam/src/main/java/rocks/theodolite/benchmarks/uc2/beam/PipelineFactory.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc2.beam; import com.google.common.math.Stats; import com.google.common.math.StatsAccumulator; @@ -18,10 +18,10 @@ import org.apache.beam.sdk.values.KV; import org.apache.commons.configuration2.Configuration; import org.apache.kafka.common.serialization.StringSerializer; import org.joda.time.Duration; -import theodolite.commons.beam.AbstractPipelineFactory; -import theodolite.commons.beam.ConfigurationKeys; -import theodolite.commons.beam.kafka.KafkaActivePowerTimestampReader; -import theodolite.commons.beam.kafka.KafkaWriterTransformation; +import rocks.theodolite.benchmarks.commons.beam.AbstractPipelineFactory; +import rocks.theodolite.benchmarks.commons.beam.ConfigurationKeys; +import rocks.theodolite.benchmarks.commons.beam.kafka.KafkaActivePowerTimestampReader; +import rocks.theodolite.benchmarks.commons.beam.kafka.KafkaWriterTransformation; import titan.ccp.model.records.ActivePowerRecord; /** diff --git a/theodolite-benchmarks/uc2-beam/src/main/java/application/StatsAggregation.java b/theodolite-benchmarks/uc2-beam/src/main/java/rocks/theodolite/benchmarks/uc2/beam/StatsAggregation.java similarity index 96% rename from theodolite-benchmarks/uc2-beam/src/main/java/application/StatsAggregation.java rename to theodolite-benchmarks/uc2-beam/src/main/java/rocks/theodolite/benchmarks/uc2/beam/StatsAggregation.java index 688f6677e..a8956ee4b 100644 --- a/theodolite-benchmarks/uc2-beam/src/main/java/application/StatsAggregation.java +++ b/theodolite-benchmarks/uc2-beam/src/main/java/rocks/theodolite/benchmarks/uc2/beam/StatsAggregation.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc2.beam; import com.google.common.math.Stats; import com.google.common.math.StatsAccumulator; diff --git a/theodolite-benchmarks/uc2-beam/src/main/java/application/StatsToString.java b/theodolite-benchmarks/uc2-beam/src/main/java/rocks/theodolite/benchmarks/uc2/beam/StatsToString.java similarity index 91% rename from theodolite-benchmarks/uc2-beam/src/main/java/application/StatsToString.java rename to theodolite-benchmarks/uc2-beam/src/main/java/rocks/theodolite/benchmarks/uc2/beam/StatsToString.java index 9a73ae8e1..222c9f3a1 100644 --- a/theodolite-benchmarks/uc2-beam/src/main/java/application/StatsToString.java +++ b/theodolite-benchmarks/uc2-beam/src/main/java/rocks/theodolite/benchmarks/uc2/beam/StatsToString.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc2.beam; import com.google.common.math.Stats; import org.apache.beam.sdk.transforms.SimpleFunction; diff --git a/theodolite-benchmarks/uc3-beam-flink/build.gradle b/theodolite-benchmarks/uc3-beam-flink/build.gradle index f3083d10b..c2fe5c11b 100644 --- a/theodolite-benchmarks/uc3-beam-flink/build.gradle +++ b/theodolite-benchmarks/uc3-beam-flink/build.gradle @@ -16,4 +16,4 @@ sourceSets { } } -mainClassName = 'application.Uc3BeamFlink' +mainClassName = 'rocks.theodolite.benchmarks.uc3.beam.flink.Uc3BeamFlink' diff --git a/theodolite-benchmarks/uc3-beam-flink/src/main/java/application/Uc3BeamFlink.java b/theodolite-benchmarks/uc3-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc3/beam/flink/Uc3BeamFlink.java similarity index 84% rename from theodolite-benchmarks/uc3-beam-flink/src/main/java/application/Uc3BeamFlink.java rename to theodolite-benchmarks/uc3-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc3/beam/flink/Uc3BeamFlink.java index 508273602..8782559fe 100644 --- a/theodolite-benchmarks/uc3-beam-flink/src/main/java/application/Uc3BeamFlink.java +++ b/theodolite-benchmarks/uc3-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc3/beam/flink/Uc3BeamFlink.java @@ -1,7 +1,8 @@ -package application; +package rocks.theodolite.benchmarks.uc3.beam.flink; import org.apache.beam.runners.flink.FlinkRunner; -import theodolite.commons.beam.BeamService; +import rocks.theodolite.benchmarks.commons.beam.BeamService; +import rocks.theodolite.benchmarks.uc3.beam.PipelineFactory; /** * Implementation of the use case Aggregation based on Time Attributes using Apache Beam with the diff --git a/theodolite-benchmarks/uc3-beam-samza/build.gradle b/theodolite-benchmarks/uc3-beam-samza/build.gradle index 849a01033..b5d47d82b 100644 --- a/theodolite-benchmarks/uc3-beam-samza/build.gradle +++ b/theodolite-benchmarks/uc3-beam-samza/build.gradle @@ -16,4 +16,4 @@ sourceSets { } } -mainClassName = "application.Uc3BeamSamza" +mainClassName = "rocks.theodolite.benchmarks.uc3.beam.samza.Uc3BeamSamza" diff --git a/theodolite-benchmarks/uc3-beam-samza/src/main/java/application/Uc3BeamSamza.java b/theodolite-benchmarks/uc3-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc3/beam/samza/Uc3BeamSamza.java similarity index 84% rename from theodolite-benchmarks/uc3-beam-samza/src/main/java/application/Uc3BeamSamza.java rename to theodolite-benchmarks/uc3-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc3/beam/samza/Uc3BeamSamza.java index 974c5e79e..84e705f6f 100644 --- a/theodolite-benchmarks/uc3-beam-samza/src/main/java/application/Uc3BeamSamza.java +++ b/theodolite-benchmarks/uc3-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc3/beam/samza/Uc3BeamSamza.java @@ -1,7 +1,8 @@ -package application; +package rocks.theodolite.benchmarks.uc3.beam.samza; import org.apache.beam.runners.samza.SamzaRunner; -import theodolite.commons.beam.BeamService; +import rocks.theodolite.benchmarks.commons.beam.BeamService; +import rocks.theodolite.benchmarks.uc3.beam.PipelineFactory; /** * Implementation of the use case Aggregation based on Time Attributes using Apache Beam with the diff --git a/theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayKey.java b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayKey.java similarity index 93% rename from theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayKey.java rename to theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayKey.java index 6db59dd65..9a18ae488 100644 --- a/theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayKey.java +++ b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayKey.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc3.beam; import org.apache.beam.sdk.coders.AvroCoder; import org.apache.beam.sdk.coders.DefaultCoder; diff --git a/theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayKeyFactory.java b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayKeyFactory.java similarity index 92% rename from theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayKeyFactory.java rename to theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayKeyFactory.java index b993a0199..a685f3241 100644 --- a/theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayKeyFactory.java +++ b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayKeyFactory.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc3.beam; import java.io.Serializable; import java.time.LocalDateTime; diff --git a/theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayKeySerde.java b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayKeySerde.java similarity index 95% rename from theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayKeySerde.java rename to theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayKeySerde.java index a0f8e0bba..1c09d7d50 100644 --- a/theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayKeySerde.java +++ b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayKeySerde.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc3.beam; import org.apache.kafka.common.serialization.Serde; import titan.ccp.common.kafka.simpleserdes.BufferSerde; diff --git a/theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayWithStats.java b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayWithStats.java similarity index 93% rename from theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayWithStats.java rename to theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayWithStats.java index 46232b3f1..0d9aa6ab0 100644 --- a/theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDayWithStats.java +++ b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDayWithStats.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc3.beam; import com.google.common.math.Stats; import org.apache.beam.sdk.transforms.SimpleFunction; diff --git a/theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDaykeyCoder.java b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDaykeyCoder.java similarity index 97% rename from theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDaykeyCoder.java rename to theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDaykeyCoder.java index 196408263..dd84010d1 100644 --- a/theodolite-benchmarks/uc3-beam/src/main/java/application/HourOfDaykeyCoder.java +++ b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/HourOfDaykeyCoder.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc3.beam; import java.io.IOException; import java.io.InputStream; diff --git a/theodolite-benchmarks/uc3-beam/src/main/java/application/MapTimeFormat.java b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/MapTimeFormat.java similarity index 95% rename from theodolite-benchmarks/uc3-beam/src/main/java/application/MapTimeFormat.java rename to theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/MapTimeFormat.java index 7d8897fb0..d129a67b1 100644 --- a/theodolite-benchmarks/uc3-beam/src/main/java/application/MapTimeFormat.java +++ b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/MapTimeFormat.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc3.beam; import java.time.Instant; import java.time.LocalDateTime; diff --git a/theodolite-benchmarks/uc3-beam/src/main/java/application/PipelineFactory.java b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/PipelineFactory.java similarity index 92% rename from theodolite-benchmarks/uc3-beam/src/main/java/application/PipelineFactory.java rename to theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/PipelineFactory.java index e14010c5e..0d1f8fdbb 100644 --- a/theodolite-benchmarks/uc3-beam/src/main/java/application/PipelineFactory.java +++ b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/PipelineFactory.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc3.beam; import com.google.common.math.Stats; import com.google.common.math.StatsAccumulator; @@ -19,10 +19,10 @@ import org.apache.beam.sdk.values.KV; import org.apache.commons.configuration2.Configuration; import org.apache.kafka.common.serialization.StringSerializer; import org.joda.time.Duration; -import theodolite.commons.beam.AbstractPipelineFactory; -import theodolite.commons.beam.ConfigurationKeys; -import theodolite.commons.beam.kafka.KafkaActivePowerTimestampReader; -import theodolite.commons.beam.kafka.KafkaWriterTransformation; +import rocks.theodolite.benchmarks.commons.beam.AbstractPipelineFactory; +import rocks.theodolite.benchmarks.commons.beam.ConfigurationKeys; +import rocks.theodolite.benchmarks.commons.beam.kafka.KafkaActivePowerTimestampReader; +import rocks.theodolite.benchmarks.commons.beam.kafka.KafkaWriterTransformation; import titan.ccp.model.records.ActivePowerRecord; /** diff --git a/theodolite-benchmarks/uc3-beam/src/main/java/application/StatsAggregation.java b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/StatsAggregation.java similarity index 96% rename from theodolite-benchmarks/uc3-beam/src/main/java/application/StatsAggregation.java rename to theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/StatsAggregation.java index ee5cfc48b..e479c0ab5 100644 --- a/theodolite-benchmarks/uc3-beam/src/main/java/application/StatsAggregation.java +++ b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/StatsAggregation.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc3.beam; import com.google.common.math.Stats; import com.google.common.math.StatsAccumulator; diff --git a/theodolite-benchmarks/uc3-beam/src/main/java/application/StatsKeyFactory.java b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/StatsKeyFactory.java similarity index 87% rename from theodolite-benchmarks/uc3-beam/src/main/java/application/StatsKeyFactory.java rename to theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/StatsKeyFactory.java index 820168058..6f34a50ad 100644 --- a/theodolite-benchmarks/uc3-beam/src/main/java/application/StatsKeyFactory.java +++ b/theodolite-benchmarks/uc3-beam/src/main/java/rocks/theodolite/benchmarks/uc3/beam/StatsKeyFactory.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc3.beam; import java.time.LocalDateTime; diff --git a/theodolite-benchmarks/uc4-beam-flink/build.gradle b/theodolite-benchmarks/uc4-beam-flink/build.gradle index 56cff477d..8ccf18a2d 100644 --- a/theodolite-benchmarks/uc4-beam-flink/build.gradle +++ b/theodolite-benchmarks/uc4-beam-flink/build.gradle @@ -16,4 +16,4 @@ sourceSets { } } -mainClassName = 'application.Uc4BeamFlink' +mainClassName = 'rocks.theodolite.benchmarks.uc4.beam.flink.Uc4BeamFlink' diff --git a/theodolite-benchmarks/uc4-beam-flink/src/main/java/application/Uc4BeamFlink.java b/theodolite-benchmarks/uc4-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc4/beam/flink/Uc4BeamFlink.java similarity index 70% rename from theodolite-benchmarks/uc4-beam-flink/src/main/java/application/Uc4BeamFlink.java rename to theodolite-benchmarks/uc4-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc4/beam/flink/Uc4BeamFlink.java index 0d5d2a04f..5d398d610 100644 --- a/theodolite-benchmarks/uc4-beam-flink/src/main/java/application/Uc4BeamFlink.java +++ b/theodolite-benchmarks/uc4-beam-flink/src/main/java/rocks/theodolite/benchmarks/uc4/beam/flink/Uc4BeamFlink.java @@ -1,7 +1,8 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam.flink; import org.apache.beam.runners.flink.FlinkRunner; -import theodolite.commons.beam.BeamService; +import rocks.theodolite.benchmarks.commons.beam.BeamService; +import rocks.theodolite.benchmarks.uc4.beam.PipelineFactory; /** * Implementation of the use case Hierarchical Aggregation using Apache Beam with the Flink Runner. diff --git a/theodolite-benchmarks/uc4-beam-samza/build.gradle b/theodolite-benchmarks/uc4-beam-samza/build.gradle index 8aecf1ea8..38e21bfd2 100644 --- a/theodolite-benchmarks/uc4-beam-samza/build.gradle +++ b/theodolite-benchmarks/uc4-beam-samza/build.gradle @@ -16,4 +16,4 @@ sourceSets { } } -mainClassName = "application.Uc4BeamSamza" +mainClassName = "rocks.theodolite.benchmarks.uc4.beam.samza.Uc4BeamSamza" diff --git a/theodolite-benchmarks/uc4-beam-samza/src/main/java/application/Uc4BeamSamza.java b/theodolite-benchmarks/uc4-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc4/beam/samza/Uc4BeamSamza.java similarity index 85% rename from theodolite-benchmarks/uc4-beam-samza/src/main/java/application/Uc4BeamSamza.java rename to theodolite-benchmarks/uc4-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc4/beam/samza/Uc4BeamSamza.java index 25420958d..044b3dc4b 100644 --- a/theodolite-benchmarks/uc4-beam-samza/src/main/java/application/Uc4BeamSamza.java +++ b/theodolite-benchmarks/uc4-beam-samza/src/main/java/rocks/theodolite/benchmarks/uc4/beam/samza/Uc4BeamSamza.java @@ -1,7 +1,8 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam.samza; import org.apache.beam.runners.samza.SamzaRunner; -import theodolite.commons.beam.BeamService; +import rocks.theodolite.benchmarks.commons.beam.BeamService; +import rocks.theodolite.benchmarks.uc4.beam.PipelineFactory; /** * Implementation of the use case Hierarchical Aggregation using Apache Beam with the Samza Runner. diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/AggregatedActivePowerRecordEventTimePolicy.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/AggregatedActivePowerRecordEventTimePolicy.java similarity index 96% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/AggregatedActivePowerRecordEventTimePolicy.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/AggregatedActivePowerRecordEventTimePolicy.java index dad9eca7d..3af4957aa 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/AggregatedActivePowerRecordEventTimePolicy.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/AggregatedActivePowerRecordEventTimePolicy.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam; import java.util.Optional; import org.apache.beam.sdk.io.kafka.KafkaRecord; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/AggregatedToActive.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/AggregatedToActive.java similarity index 94% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/AggregatedToActive.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/AggregatedToActive.java index bddd43e1e..63f914dca 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/AggregatedToActive.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/AggregatedToActive.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam; import org.apache.beam.sdk.transforms.SimpleFunction; import org.apache.beam.sdk.values.KV; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/DuplicateAsFlatMap.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/DuplicateAsFlatMap.java similarity index 98% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/DuplicateAsFlatMap.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/DuplicateAsFlatMap.java index 347d76dfb..1b430c99b 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/DuplicateAsFlatMap.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/DuplicateAsFlatMap.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam; import com.google.common.base.MoreObjects; import java.util.Collections; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/FilterEvents.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/FilterEvents.java similarity index 92% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/FilterEvents.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/FilterEvents.java index 358844339..6a96d7270 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/FilterEvents.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/FilterEvents.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam; import org.apache.beam.sdk.transforms.SerializableFunction; import org.apache.beam.sdk.values.KV; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/FilterNullValues.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/FilterNullValues.java similarity index 91% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/FilterNullValues.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/FilterNullValues.java index 143294f1f..9aa48d7b8 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/FilterNullValues.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/FilterNullValues.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam; import org.apache.beam.sdk.transforms.SerializableFunction; import org.apache.beam.sdk.values.KV; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/GenerateParentsFn.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/GenerateParentsFn.java similarity index 97% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/GenerateParentsFn.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/GenerateParentsFn.java index 081d9e212..e6f01c3d5 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/GenerateParentsFn.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/GenerateParentsFn.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam; import java.util.Collections; import java.util.Iterator; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/PipelineFactory.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/PipelineFactory.java similarity index 93% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/PipelineFactory.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/PipelineFactory.java index c6ec79a1f..4cb707017 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/PipelineFactory.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/PipelineFactory.java @@ -1,4 +1,4 @@ -package application; // NOPMD +package rocks.theodolite.benchmarks.uc4.beam; // NOPMD import com.google.common.math.StatsAccumulator; import io.confluent.kafka.serializers.AbstractKafkaAvroSerDeConfig; @@ -35,17 +35,17 @@ import org.apache.commons.configuration2.Configuration; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.common.serialization.StringDeserializer; import org.joda.time.Duration; -import serialization.AggregatedActivePowerRecordCoder; -import serialization.AggregatedActivePowerRecordDeserializer; -import serialization.AggregatedActivePowerRecordSerializer; -import serialization.EventCoder; -import serialization.EventDeserializer; -import serialization.SensorParentKeyCoder; -import theodolite.commons.beam.AbstractPipelineFactory; -import theodolite.commons.beam.ConfigurationKeys; -import theodolite.commons.beam.kafka.KafkaActivePowerTimestampReader; -import theodolite.commons.beam.kafka.KafkaGenericReader; -import theodolite.commons.beam.kafka.KafkaWriterTransformation; +import rocks.theodolite.benchmarks.commons.beam.AbstractPipelineFactory; +import rocks.theodolite.benchmarks.commons.beam.ConfigurationKeys; +import rocks.theodolite.benchmarks.commons.beam.kafka.KafkaActivePowerTimestampReader; +import rocks.theodolite.benchmarks.commons.beam.kafka.KafkaGenericReader; +import rocks.theodolite.benchmarks.commons.beam.kafka.KafkaWriterTransformation; +import rocks.theodolite.benchmarks.uc4.beam.serialization.AggregatedActivePowerRecordCoder; +import rocks.theodolite.benchmarks.uc4.beam.serialization.AggregatedActivePowerRecordDeserializer; +import rocks.theodolite.benchmarks.uc4.beam.serialization.AggregatedActivePowerRecordSerializer; +import rocks.theodolite.benchmarks.uc4.beam.serialization.EventCoder; +import rocks.theodolite.benchmarks.uc4.beam.serialization.EventDeserializer; +import rocks.theodolite.benchmarks.uc4.beam.serialization.SensorParentKeyCoder; import titan.ccp.configuration.events.Event; import titan.ccp.model.records.ActivePowerRecord; import titan.ccp.model.records.AggregatedActivePowerRecord; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/RecordAggregation.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/RecordAggregation.java similarity index 97% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/RecordAggregation.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/RecordAggregation.java index 16fd411b4..6fbf6ff3f 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/RecordAggregation.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/RecordAggregation.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam; import java.io.Serializable; import org.apache.beam.sdk.coders.AvroCoder; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/SensorParentKey.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/SensorParentKey.java similarity index 93% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/SensorParentKey.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/SensorParentKey.java index 546fc04c2..28efd63f2 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/SensorParentKey.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/SensorParentKey.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam; /** * A key consisting of the identifier of a sensor and an identifier of parent sensor. diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/SetIdForAggregated.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/SetIdForAggregated.java similarity index 94% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/SetIdForAggregated.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/SetIdForAggregated.java index 0279a26ed..23ebb6d01 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/SetIdForAggregated.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/SetIdForAggregated.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam; import org.apache.beam.sdk.transforms.SimpleFunction; import org.apache.beam.sdk.values.KV; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/SetKeyToGroup.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/SetKeyToGroup.java similarity index 92% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/SetKeyToGroup.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/SetKeyToGroup.java index 7d8dc7058..3ffba1282 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/SetKeyToGroup.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/SetKeyToGroup.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam; import org.apache.beam.sdk.transforms.SimpleFunction; import org.apache.beam.sdk.values.KV; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/application/UpdateChildParentPairs.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/UpdateChildParentPairs.java similarity index 96% rename from theodolite-benchmarks/uc4-beam/src/main/java/application/UpdateChildParentPairs.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/UpdateChildParentPairs.java index cff04e132..190bb074d 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/application/UpdateChildParentPairs.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/UpdateChildParentPairs.java @@ -1,4 +1,4 @@ -package application; +package rocks.theodolite.benchmarks.uc4.beam; import java.util.Set; import org.apache.beam.sdk.state.StateSpec; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/AggregatedActivePowerRecordCoder.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/AggregatedActivePowerRecordCoder.java similarity index 96% rename from theodolite-benchmarks/uc4-beam/src/main/java/serialization/AggregatedActivePowerRecordCoder.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/AggregatedActivePowerRecordCoder.java index 3e0be0fa4..f460d42de 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/AggregatedActivePowerRecordCoder.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/AggregatedActivePowerRecordCoder.java @@ -1,4 +1,4 @@ -package serialization; +package rocks.theodolite.benchmarks.uc4.beam.serialization; import java.io.IOException; import java.io.InputStream; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/AggregatedActivePowerRecordDeserializer.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/AggregatedActivePowerRecordDeserializer.java similarity index 86% rename from theodolite-benchmarks/uc4-beam/src/main/java/serialization/AggregatedActivePowerRecordDeserializer.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/AggregatedActivePowerRecordDeserializer.java index 3076861a5..2c481f8e6 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/AggregatedActivePowerRecordDeserializer.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/AggregatedActivePowerRecordDeserializer.java @@ -1,4 +1,4 @@ -package serialization; +package rocks.theodolite.benchmarks.uc4.beam.serialization; import io.confluent.kafka.streams.serdes.avro.SpecificAvroDeserializer; import org.apache.kafka.common.serialization.Deserializer; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/AggregatedActivePowerRecordSerializer.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/AggregatedActivePowerRecordSerializer.java similarity index 86% rename from theodolite-benchmarks/uc4-beam/src/main/java/serialization/AggregatedActivePowerRecordSerializer.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/AggregatedActivePowerRecordSerializer.java index 26801d8a2..073c3d0f9 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/AggregatedActivePowerRecordSerializer.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/AggregatedActivePowerRecordSerializer.java @@ -1,4 +1,4 @@ -package serialization; +package rocks.theodolite.benchmarks.uc4.beam.serialization; import io.confluent.kafka.streams.serdes.avro.SpecificAvroSerializer; import org.apache.kafka.common.serialization.Serializer; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/EventCoder.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/EventCoder.java similarity index 97% rename from theodolite-benchmarks/uc4-beam/src/main/java/serialization/EventCoder.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/EventCoder.java index 710beb71d..b96398398 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/EventCoder.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/EventCoder.java @@ -1,4 +1,4 @@ -package serialization; +package rocks.theodolite.benchmarks.uc4.beam.serialization; import java.io.IOException; import java.io.InputStream; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/EventDeserializer.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/EventDeserializer.java similarity index 94% rename from theodolite-benchmarks/uc4-beam/src/main/java/serialization/EventDeserializer.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/EventDeserializer.java index 34e31a305..ae9c480e1 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/EventDeserializer.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/EventDeserializer.java @@ -1,4 +1,4 @@ -package serialization; +package rocks.theodolite.benchmarks.uc4.beam.serialization; import java.util.Map; import org.apache.kafka.common.serialization.ByteBufferDeserializer; diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/SensorParentKeyCoder.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/SensorParentKeyCoder.java similarity index 94% rename from theodolite-benchmarks/uc4-beam/src/main/java/serialization/SensorParentKeyCoder.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/SensorParentKeyCoder.java index 3e85c3242..b75037bce 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/SensorParentKeyCoder.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/SensorParentKeyCoder.java @@ -1,6 +1,5 @@ -package serialization; +package rocks.theodolite.benchmarks.uc4.beam.serialization; -import application.SensorParentKey; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -11,6 +10,7 @@ import java.util.List; import org.apache.beam.sdk.coders.Coder; import org.apache.beam.sdk.coders.CoderException; import org.apache.kafka.common.serialization.Serde; +import rocks.theodolite.benchmarks.uc4.beam.SensorParentKey; /** * Wrapper Class that encapsulates a SensorParentKey Serde in a org.apache.beam.sdk.coders.Coder. diff --git a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/SensorParentKeySerde.java b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/SensorParentKeySerde.java similarity index 88% rename from theodolite-benchmarks/uc4-beam/src/main/java/serialization/SensorParentKeySerde.java rename to theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/SensorParentKeySerde.java index 468adb394..64242b3fd 100644 --- a/theodolite-benchmarks/uc4-beam/src/main/java/serialization/SensorParentKeySerde.java +++ b/theodolite-benchmarks/uc4-beam/src/main/java/rocks/theodolite/benchmarks/uc4/beam/serialization/SensorParentKeySerde.java @@ -1,7 +1,7 @@ -package serialization; +package rocks.theodolite.benchmarks.uc4.beam.serialization; -import application.SensorParentKey; import org.apache.kafka.common.serialization.Serde; +import rocks.theodolite.benchmarks.uc4.beam.SensorParentKey; import titan.ccp.common.kafka.simpleserdes.BufferSerde; import titan.ccp.common.kafka.simpleserdes.ReadBuffer; import titan.ccp.common.kafka.simpleserdes.SimpleSerdes; -- GitLab