Versions Compared

Key

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

...

Code Block
languagejs
titleJSONProtocolHandler
linenumberstrue
json = ACCESS({
    source='json', 
    wrapper='GenericPull',
    transport='File',
    protocol='JSON',
    dataHandler='KeyValueObject',   
    options=[['filename','scrobbles-2006-10.json']]
})
Code Block
languagejs
titleJSONProtocolHandler
linenumberstrue
SENDERjson = SENDER({ 
    transport='File', 
    wrapper='GenericPush', 
    protocol='JSON', 
    dataHandler='KeyValueObject', 
    SINK="SENDERjson", 
    options=[ 
        ['filename','${WORKSPACEPROJECT}\testdata\tupletokeyvalue\output.json'], 
        ['json.write.metadata','true'] 
        ['json.write.starttimestamp','metadata.starttimestamp'], 
        ['json.write.endtimestamp','metadata.endtimestamp'] 
    ]}, tupletokeyvalue0)

 

CQL

Code Block
themeEclipse
languagesql
titleJSON Protocol Handler
linenumberstrue
CREATE STREAM line (symbol String, points Double)   
    WRAPPER 'GenericPush'
    PROTOCOL 'JSON'
    TRANSPORT 'File'
    DATAHANDLER 'Tuple'