public static class KafkaSpoutStreamsNamedTopics.Builder extends Object
Constructor and Description |
---|
Builder(Fields outputFields,
String... topics)
Creates a
KafkaSpoutStream with the given output Fields for each topic specified. |
Builder(Fields outputFields,
String streamId,
String... topics)
Creates a
KafkaSpoutStream with this particular stream for each topic specified. |
Builder(KafkaSpoutStream stream)
Adds this stream to the state representing the streams associated with each topic
|
Modifier and Type | Method and Description |
---|---|
KafkaSpoutStreamsNamedTopics.Builder |
addStream(Fields outputFields,
String... topics)
Please refer to javadoc in
#Builder(Fields, String...) |
KafkaSpoutStreamsNamedTopics.Builder |
addStream(Fields outputFields,
String streamId,
String... topics)
Please refer to javadoc in
#Builder(Fields, String, String...) |
KafkaSpoutStreamsNamedTopics.Builder |
addStream(KafkaSpoutStream stream)
Adds this stream to the state representing the streams associated with each topic
|
KafkaSpoutStreamsNamedTopics |
build() |
public Builder(Fields outputFields, String... topics)
Creates a KafkaSpoutStream
with the given output Fields for each topic specified. All topics will have the default stream id and the same output fields.
public Builder(Fields outputFields, String streamId, String... topics)
Creates a KafkaSpoutStream
with this particular stream for each topic specified. All the topics will have the specified stream id and the same output fields.
public Builder(KafkaSpoutStream stream)
Adds this stream to the state representing the streams associated with each topic
public KafkaSpoutStreamsNamedTopics.Builder addStream(KafkaSpoutStream stream)
Adds this stream to the state representing the streams associated with each topic
public KafkaSpoutStreamsNamedTopics.Builder addStream(Fields outputFields, String... topics)
Please refer to javadoc in #Builder(Fields, String...)
public KafkaSpoutStreamsNamedTopics.Builder addStream(Fields outputFields, String streamId, String... topics)
Please refer to javadoc in #Builder(Fields, String, String...)
public KafkaSpoutStreamsNamedTopics build()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.