flomickl commented on issue #1040:
URL: https://github.com/apache/streampipes/issues/1040#issuecomment-1426806856
@bossenti @tenthe
What do you think about this: (before I create a special discussion)
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 GEOM_RUNTIME="geometry"
private static final String TEMPERATUR_RUNTIME="temperature"
...
.outputStrategy(
OutputStrategies.append(
PrimitivePropertyBuilder
.create(Datatypes.String, GEOM_RUNTIME)
.domainProperty(Geo.LAT)
.build()
)
...
```
It is stored in a Class Runtime
and is used like
```
.outputStrategy(
OutputStrategies.append(
PrimitivePropertyBuilder
...
-> .create(Datatypes.String, RUNTIME.GEOMETRY)
...
.build()
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]