示例#1
0
__author__ = 'David Turanski'

from springxd.stream import Processor


def echo(data):
    return data

process = Processor()
process.start(echo)

示例#2
0
__author__ = 'David Turanski'

from springxd.stream import Processor


def echo(data):
    return data


process = Processor()
process.start(echo)
示例#3
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)