public class DataStreamBuilder extends AbstractPipelineElementBuilder<DataStreamBuilder,SpDataStream>
elementDescription| Modifier | Constructor and Description |
|---|---|
protected |
DataStreamBuilder(String id,
String label,
String description) |
| Modifier and Type | Method and Description |
|---|---|
static DataStreamBuilder |
create(String id,
String label,
String description)
Creates a new data stream using the builder pattern.
|
DataStreamBuilder |
format(TransportFormat format)
Assigns a new
TransportFormat to the stream definition. |
protected DataStreamBuilder |
me() |
protected void |
prepareBuild() |
DataStreamBuilder |
properties(List<EventProperty> properties)
Assigns a list of new event properties to the stream's schema.
|
DataStreamBuilder |
property(EventProperty property)
Assigns a new event property to the stream's schema.
|
DataStreamBuilder |
protocol(TransportProtocol protocol)
Assigns a new
TransportProtocol to the stream definition. |
build, iconUrl, prepareStaticPropertypublic static DataStreamBuilder create(String id, String label, String description)
id - A unique identifier of the new element, e.g., com.mycompany.stream.mynewdatastreamlabel - A human-readable name of the element. Will later be shown as the element name in the StreamPipes UI.description - A human-readable description of the element.DataStreamBuilderpublic DataStreamBuilder property(EventProperty property)
property - The event property that should be added. Use EpProperties
for defining simple property definitions or
PrimitivePropertyBuilder for defining more complex
definitions.public DataStreamBuilder properties(List<EventProperty> properties)
properties - The event properties that should be added.public DataStreamBuilder protocol(TransportProtocol protocol)
TransportProtocol to the stream definition.protocol - The transport protocol of the stream at runtime (e.g., Kafka or MQTT). Use
Protocols to use some pre-defined protocols (or create a new protocol as
described in the developer guide).public DataStreamBuilder format(TransportFormat format)
TransportFormat to the stream definition.format - The transport format of the stream at runtime (e.g., JSON or Thrift). Use
Formats to use some pre-defined formats (or create a new format as
described in the developer guide).protected DataStreamBuilder me()
me in class AbstractPipelineElementBuilder<DataStreamBuilder,SpDataStream>protected void prepareBuild()
prepareBuild in class AbstractPipelineElementBuilder<DataStreamBuilder,SpDataStream>Copyright © 2018. All rights reserved.