Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

StreamRequirementsBuilder class provides methods to add stream requirements to a pipeline element.

MethodParametersDesciption
.create()non
.requiredPropertyWithUnaryMappingEventProperty propertyRequirement, Label label, PropertyScope propertyScopeA unary mapping property maps a stream requirement to an actual field of an event stream. Therefore, the StreamRequirementsBuilder provides the opportunity to directly add a mapping property based along with a property requirement:
.requiredPropertyWithNaryMappingEventProperty propertyRequirement, Label label, PropertyScope propertyScopeN-ary mapping properties work similar to unary mapping properties, but allow the mapping of one requirement to multiple event properties matching the requirement:
.requiredProperty()EventProperty propertyRequirementSets a new property requirement, e.g., a property of a specific data type or with specific semantics a data stream that is connected to this pipeline element must provide.
.build()non

Example

Code Block
.requiredStream(StreamRequirementsBuilder.
    create()
    .requiredPropertyWithUnaryMapping(
		...
	)
.
build())

...

The Class propertyRequirement has static methods and returns an EventProperty of following types:

Event Property EpRequirements ClassesDescription
EventPropertyPrimitiveprimitive fields property
EventPropertyListlist fields properties

nested properties?
EventProperty

Methods for EventPropertyPrimitive

MethodInput ParametersDesciptionExample
anyProperty()non





booleanReq ()non

booleanReq ()String domainProperty





datatypeReq ()String datatype

datatypeReq ()Datatypes datatype





doubleReq ()non

doubleReq()String domainProperty





intererReq()non

integerReq()String domainProperty





numberReq()non

numberReq()String domainProperty





stringReq()non

stringReq()String domainProperty





timestampReq()non

Example


Mapping in onInvocation

...

Methods for EventPropertyList

UsesMethodInput ParametersDesciptionExample
yeslistRequirement()nonSimilarly to primitive requirements, you can define processors that require data streams with list fields
yeslistRequirement()Datatypes datatypeSimilarly to primitive requirements, you can define processors that require data streams with list fields
nonnestedListRequirement()EventProperty... requiredProperties

nonnestedListRequirement()non

nonnestedListRequirement()EventPropertyNested nestedRequirement

?domainPropertyReq()String domainProperty


Datatypes datatype

Code Block
Datatypes.Number
Datatypes.Boolean
Datatypes.Double
Datatypes.Float
Datatypes.Integer
Datatypes.Long
Datatypes.Sequense
Datatypes.String

...

Methods for EventProperty

MethodInput ParametersDesciptionExample
nestedListRequirementEventProperty... requiredProperties

withMappingPropertyIDString internalId EventProperty requirement

Example

Mapping in onInvocation

...