You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/10/23 12:09:29 UTC

[streampipes] 07/08: remove data lake migration

This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch 2045-implement-migration-for-adapter-and-pipeline-element-configurations
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 20a9ddf4a7223a2078c2e1e4f049838507bb9392
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Oct 23 14:08:27 2023 +0200

    remove data lake migration
---
 .../sinks/internal/jvm/DataLakeMigrationv1.java    | 56 ----------------------
 .../sinks/internal/jvm/SinksInternalJvmInit.java   |  3 --
 2 files changed, 59 deletions(-)

diff --git a/streampipes-extensions/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/DataLakeMigrationv1.java b/streampipes-extensions/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/DataLakeMigrationv1.java
deleted file mode 100644
index be70b0e83..000000000
--- a/streampipes-extensions/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/DataLakeMigrationv1.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.sinks.internal.jvm;
-
-import org.apache.streampipes.commons.exceptions.SpConfigurationException;
-import org.apache.streampipes.extensions.api.extractor.IDataSinkParameterExtractor;
-import org.apache.streampipes.extensions.api.migration.MigrationResult;
-import org.apache.streampipes.extensions.api.migration.ModelMigrator;
-import org.apache.streampipes.model.graph.DataSinkInvocation;
-import org.apache.streampipes.sdk.StaticProperties;
-import org.apache.streampipes.sdk.helpers.Labels;
-import org.apache.streampipes.sdk.utils.Datatypes;
-
-public class DataLakeMigrationv1 implements ModelMigrator<DataSinkInvocation, IDataSinkParameterExtractor> {
-
-  @Override
-  public String targetsAppId() {
-    return "org.apache.streampipes.sinks.internal.jvm.datalake";
-  }
-
-  @Override
-  public Integer fromVersion() {
-    return 0;
-  }
-
-  @Override
-  public Integer toVersion() {
-    return 1;
-  }
-
-  @Override
-  public MigrationResult<DataSinkInvocation> migrate(DataSinkInvocation element,
-                                                     IDataSinkParameterExtractor extractor) throws SpConfigurationException {
-    element.getStaticProperties().add(
-        StaticProperties.freeTextProperty(Labels.empty(), Datatypes.String)
-    );
-
-    return MigrationResult.success(element);
-  }
-}
diff --git a/streampipes-extensions/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/SinksInternalJvmInit.java b/streampipes-extensions/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/SinksInternalJvmInit.java
index d18b68625..38961624c 100644
--- a/streampipes-extensions/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/SinksInternalJvmInit.java
+++ b/streampipes-extensions/streampipes-sinks-internal-jvm/src/main/java/org/apache/streampipes/sinks/internal/jvm/SinksInternalJvmInit.java
@@ -53,9 +53,6 @@ public class SinksInternalJvmInit extends ExtensionsModelSubmitter {
             new SpJmsProtocolFactory(),
             new SpMqttProtocolFactory(),
             new SpNatsProtocolFactory())
-        .registerMigrators(
-            new DataLakeMigrationv1()
-        )
         .build();