The JSON protocol handler parses JSON documents.
Options
none
Example
PQL
Code Block |
---|
theme | Eclipse |
---|
language | javascript |
---|
title | JSON Protocol Handler |
---|
linenumbers | true |
---|
|
input = ACCESS({source='JSON', wrapper='GenericPush',
transport='File',protocol='JSON',
dataHandler='Tuple',options=[],
schema=[
['symbol','String'],
['points','Double'] ]
}) |
CQL
Code Block |
---|
theme | Eclipse |
---|
language | sql |
---|
title | JSON Protocol Handler |
---|
linenumbers | true |
---|
|
CREATE STREAM line (symbol String, points Double)
WRAPPER 'GenericPush'
PROTOCOL 'JSON'
TRANSPORT 'File'
DATAHANDLER 'Tuple'
|