MCPcopy Create free account
hub / github.com/apache/storm / emitBolt

Function emitBolt

storm-multilang/python/src/main/resources/resources/storm.py:119–130  ·  view source on GitHub ↗
(tup, stream=None, anchors=[], directTask=None)

Source from the content-addressed store, hash-verified

117
118
119def emitBolt(tup, stream=None, anchors=[], directTask=None):
120 global ANCHOR_TUPLE
121 if ANCHOR_TUPLE is not None:
122 anchors = [ANCHOR_TUPLE]
123 m = {"command": "emit"}
124 if stream is not None:
125 m["stream"] = stream
126 m["anchors"] = [a.id for a in anchors]
127 if directTask is not None:
128 m["task"] = directTask
129 m["tuple"] = tup
130 sendMsgToParent(m)
131
132
133def emitSpout(tup, stream=None, id=None, directTask=None):

Callers 1

__emitFunction · 0.85

Calls 1

sendMsgToParentFunction · 0.85

Tested by

no test coverage detected