You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@streampipes.apache.org by GitBox <gi...@apache.org> on 2023/02/11 16:27:12 UTC

[GitHub] [streampipes] flomickl created a discussion: Create A class for often used Runtime names (similar to vocabulary?)

GitHub user flomickl created a discussion: Create A  class for often used Runtime names (similar to vocabulary?)

Like mentioned here https://github.com/apache/streampipes/issues/1040#issuecomment-1426806856


What do you think about this: 

Is it possible to create and use RUNTIME_names that are used more often, like the vocabulary list, globally somewhere?
Instead of define it in each processor class it is stored like Geo.LAT vocabulary  in a separate class.

```
...
private static final String TEMPERATUR_RUNTIME="temperature"
...
        .outputStrategy(
            OutputStrategies.append(
                PrimitivePropertyBuilder
                    .create(Datatypes.String, TEMPERATUR_RUNTIME)
                    .domainProperty(Geo.LAT)
                    .build()
            )
...
```

It is stored in a Class Runtime
and is used like
```
        .outputStrategy(
            OutputStrategies.append(
                PrimitivePropertyBuilder
...
 ->                   .create(Datatypes.String, RUNTIME.TEMPERATUR)
...
                    .build()
            )
```



The advantage of this approach would be,
that the runtime name e.g. with the keep + updateField method, the correct runtime name can be selected more easily.


`event.addField(TEMPERATUR_RUNTIME_NAME, temperatur);`


`event.addField(RUNTIME.TEMPERATUR, temperatur);`

GitHub link: https://github.com/apache/streampipes/discussions/1265

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] bossenti added a comment to the discussion: Create A class for often used Runtime names (similar to vocabulary?)

Posted by GitBox <gi...@apache.org>.
GitHub user bossenti added a comment to the discussion: Create A  class for often used Runtime names (similar to vocabulary?)

How about integrating it with the vocabulary and by doing this restructuring the present vocabulary a bit?
From the first sight, an enum for runtime names is also somehow a vocabulary for me

What do you think?

GitHub link: https://github.com/apache/streampipes/discussions/1265#discussioncomment-5023411

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] flomickl added a comment to the discussion: Create A class for often used Runtime names (similar to vocabulary?)

Posted by GitBox <gi...@apache.org>.
GitHub user flomickl added a comment to the discussion: Create A  class for often used Runtime names (similar to vocabulary?)

Let's discuss it further
Should it be implemented like vocabulary?
Would it be necessary to create different categories for the runtime names?
If yes, what categories should we create?

https://github.com/apache/streampipes/tree/dev/streampipes-vocabulary/src/main/java/org/apache/streampipes/vocabulary

GitHub link: https://github.com/apache/streampipes/discussions/1265#discussioncomment-5001366

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] bossenti added a comment to the discussion: Create A class for often used Runtime names (similar to vocabulary?)

Posted by GitBox <gi...@apache.org>.
GitHub user bossenti added a comment to the discussion: Create A  class for often used Runtime names (similar to vocabulary?)

Sounds like a good idea.
This could also help to streamline the naming of parameters among the several adapters and processing elements.
So +1 from my side :) 

GitHub link: https://github.com/apache/streampipes/discussions/1265#discussioncomment-4950035

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] bossenti added a comment to the discussion: Create A class for often used Runtime names (similar to vocabulary?)

Posted by GitBox <gi...@apache.org>.
GitHub user bossenti added a comment to the discussion: Create A  class for often used Runtime names (similar to vocabulary?)

Initially, I thought more about one runtime name enum but it might be a good idea to group them by domain 👍

GitHub link: https://github.com/apache/streampipes/discussions/1265#discussioncomment-5200163

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] flomickl added a comment to the discussion: Create A class for often used Runtime names (similar to vocabulary?)

Posted by GitBox <gi...@apache.org>.
GitHub user flomickl added a comment to the discussion: Create A  class for often used Runtime names (similar to vocabulary?)

Do you mean in each vocabulary (topic) group add enums with default runtime names?
Sounds like a good plan. 
You add this also in #1373  :)

GitHub link: https://github.com/apache/streampipes/discussions/1265#discussioncomment-5200026

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org