You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2020/06/20 18:41:43 UTC

[incubator-streampipes-extensions] branch dev updated: Add property scope to label processors

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

zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-extensions.git


The following commit(s) were added to refs/heads/dev by this push:
     new a723f09  Add property scope to label processors
a723f09 is described below

commit a723f09748ad97b3f97f98740dd698038036b616
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Sat Jun 20 20:41:14 2020 +0200

    Add property scope to label processors
---
 .../processor/state/labeler/buffer/StateBufferLabelerController.java    | 2 +-
 .../jvm/processor/state/labeler/number/NumberLabelerController.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/buffer/StateBufferLabelerController.java b/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/buffer/StateBufferLabelerController.java
index fa19e8a..63d89a3 100644
--- a/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/buffer/StateBufferLabelerController.java
+++ b/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/buffer/StateBufferLabelerController.java
@@ -77,7 +77,7 @@ public class StateBufferLabelerController extends StandaloneEventProcessingDecla
 //                        Options.from("Bool",  "Byte", "Int", "Word", "Real"))))
 
             .outputStrategy(OutputStrategies.append(
-                    EpProperties.stringEp(Labels.withId(LABEL), LABEL, SPSensor.STATE)
+                    EpProperties.stringEp(Labels.withId(LABEL), LABEL, SPSensor.STATE, PropertyScope.DIMENSION_PROPERTY)
             ))
             .build();
   }
diff --git a/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/number/NumberLabelerController.java b/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/number/NumberLabelerController.java
index 5f77127..473bec6 100644
--- a/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/number/NumberLabelerController.java
+++ b/streampipes-processors-transformation-jvm/src/main/java/org/apache/streampipes/processors/transformation/jvm/processor/state/labeler/number/NumberLabelerController.java
@@ -63,7 +63,7 @@ public class NumberLabelerController extends StandaloneEventProcessingDeclarer<N
 //                        Options.from("Bool",  "Byte", "Int", "Word", "Real"))))
 
             .outputStrategy(OutputStrategies.append(
-                    EpProperties.stringEp(Labels.withId(LABEL), LABEL, SPSensor.STATE)
+                    EpProperties.stringEp(Labels.withId(LABEL), LABEL, SPSensor.STATE, PropertyScope.DIMENSION_PROPERTY)
             ))
             .build();
   }