Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • wrapper: In Odysseus the default wrappers are GenericPush and GenericPull
  • transport: The transport defines the transport protocol to use.
  • protocol: The protocol parameter defines the application protocol to transform the processing results.
  • datahandler: This parameter defines the transform of the single attributes of the processing results.
  • writeMetadata: If set to true, the meta data of the object will be written to the output, too. Default (false) (Works currently only in PQL)
  • options: Transport protocol and application protocol depending options

Example

PQL
Code Block
languagejavascript
themeEclipse
languagejavascript
titleSender Operator
linenumberstrue
output = SENDER({sink='Sink',
                 wrapper='GenericPush',
                 transport='TCPClient',
                 protocol='CSV',
                 dataHandler='Tuple',
                 options=[['host', 'example.com'],['port', '8081'],['read', '10240'],['write', '10240']]
                }, input)
CQL
Code Block
languagesql
themeEclipselanguagesql
titleSender Operator
linenumberstrue
CREATE SINK outSink (timestamp STARTTIMESTAMP, auction INTEGER, bidder INTEGER, datetime LONG, price DOUBLE)
    WRAPPER 'GenericPush'
    PROTOCOL 'CSV'
    TRANSPORT 'TCPClient'
    DATAHANDLER 'Tuple'
    OPTIONS ( 'host' 'example.com', 'port' '8081', 'read' '10240', 'write' '10240' )

STREAM TO sink SELECT * FROM input