[Streaming] Streaming Python API (#6755)

This commit is contained in:
chaokunyang
2020-02-25 10:33:33 +08:00
committed by GitHub
parent 2c1f4fd82c
commit 8b6784de06
71 changed files with 2701 additions and 1928 deletions
+8
View File
@@ -0,0 +1,8 @@
from ray.streaming import operator
from ray.streaming import function
def test_create_operator():
map_func = function.SimpleMapFunction(lambda x: x)
map_operator = operator.create_operator(map_func)
assert type(map_operator) is operator.MapOperator