コード例 #1
0
__author__ = 'David Turanski'

from springxd.stream import Processor


def echo(data):
    return data


process = Processor()
process.start(echo)
コード例 #2
0
ファイル: echo.py プロジェクト: zmyer/spring-xd
__author__ = 'David Turanski'
import sys
import os

sys.path.append(os.path.abspath('../../spring-xd-python/src'))
from springxd.stream import Processor

def echo(data):
    return data

processor =  Processor()
processor.start(echo)