Streaming rich function (#8602)

This commit is contained in:
chaokunyang
2020-05-27 18:36:07 +08:00
committed by GitHub
parent bd4fbcd7fc
commit bcdbe2d3d4
20 changed files with 264 additions and 71 deletions
+1 -5
View File
@@ -2,7 +2,6 @@ import enum
import importlib
import inspect
import sys
import typing
from abc import ABC, abstractmethod
from ray import cloudpickle
@@ -17,7 +16,7 @@ class Language(enum.Enum):
class Function(ABC):
"""The base interface for all user-defined functions."""
def open(self, conf: typing.Dict[str, str]):
def open(self, runtime_context):
pass
def close(self):
@@ -55,9 +54,6 @@ class SourceFunction(Function):
"""
pass
def close(self):
pass
class MapFunction(Function):
"""