Versions Compared

Key

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

The directory watcher transport handler allows to watch a directory and process modification and creation of files

Options

  • directort: The directory

Example

PQL

Code Block
languagepql
titleExample
linenumberstrue
input = ACCESS({source='Source',
wrapper='GenericPush',
transport='Directory',
protocol='CSV',
dataHandler='Tuple',
options=[['directory', '/src/odysseus']],
schema=[
['id', 'Double'],
['data', 'String']]
})

CQL

Code Block
languagesql
titleExample
linenumberstrue
CREATE STREAM source (id Double, data STRING)
    WRAPPER 'GenericPush'
    PROTOCOL 'CSV'
    TRANSPORT 'Directory'
    DATAHANDLER 'Tuple'
    OPTIONS ( 'filename' '/src/odysseus')