public class KafkaSpoutStream extends Object implements Serializable
Represents the stream and output fields used by a topic
Constructor and Description |
---|
KafkaSpoutStream(Fields outputFields,
String topic)
Represents the specified outputFields and topic with the default stream
|
KafkaSpoutStream(Fields outputFields,
String streamId,
Pattern topicWildcardPattern)
Represents the specified outputFields and topic wild card with the specified stream
|
KafkaSpoutStream(Fields outputFields,
String streamId,
String topic)
Represents the specified outputFields and topic with the specified stream
|
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer) |
void |
emit(SpoutOutputCollector collector,
List<Object> tuple,
KafkaSpoutMessageId messageId) |
Fields |
getOutputFields() |
String |
getStreamId() |
String |
getTopic() |
Pattern |
getTopicWildcardPattern() |
String |
toString() |
public KafkaSpoutStream(Fields outputFields, String topic)
Represents the specified outputFields and topic with the default stream
public KafkaSpoutStream(Fields outputFields, String streamId, String topic)
Represents the specified outputFields and topic with the specified stream
public void emit(SpoutOutputCollector collector, List<Object> tuple, KafkaSpoutMessageId messageId)
public void declareOutputFields(OutputFieldsDeclarer declarer)
public Fields getOutputFields()
public String getStreamId()
public String getTopic()
KafkaSpoutStream
, or null if this stream is associated with a wildcard pattern topicpublic Pattern getTopicWildcardPattern()
KafkaSpoutStream
, or null if this stream is associated with a specific named topicCopyright © 2016 The Apache Software Foundation. All Rights Reserved.