Skip to content

Commit

Permalink
Update start.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliocimino committed Jun 16, 2022
1 parent 30f483a commit 0eb3c27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Test/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
event, ssc = connector.Prime(sc, 5 , StorageLevel.MEMORY_AND_DISK_2)

event = event.flatMap(lambda x: x.entities).map(lambda x: x.attrs['price'].value)
#response = event.map(lambda x : replier.UnstructuredReplyToBroker('{ "value" :' + str(20) +' }'))
#response2 = event.map(lambda x: replier.SemistructuredReplyToBroker("20", '{"value" : %%TOREPLACE%% }'))
response = event.map(lambda x : replier.UnstructuredReplyToBroker('{ "value" :' + str(20) +' }'))
response2 = event.map(lambda x: replier.SemistructuredReplyToBroker("20", '{"value" : %%TOREPLACE%% }'))
response3 = event.map(lambda x : replier.ReplyToBroker("20"))
event.pprint()
#response.pprint()
#response2.pprint()
response.pprint()
response2.pprint()
response3.pprint()


Expand Down

0 comments on commit 0eb3c27

Please sign in to comment.