...
The other sources are created the same way. To go further, add the following to the NexmarkSource editor (after the definition of the person source) and execute the script.
Code Block |
---|
#RUNQUERY nexmark:bid ::= ACCESS({source='nexmark:bid', wrapper='GenericPush', transport='TCPClient', protocol='SizeByteBuffer', dataHandler='Tuple', options=[ ['host', 'localhost'], ['port', '65442'], ['ByteOrder', 'LittleEndian'] ], schema=[ ['nexmark:bid','timestamp', 'STARTTIMESTAMP'], ['nexmark:bid','auction', 'INTEGER'], ['nexmark:bid','bidder', 'INTEGER'], ['nexmark:bid','datetime', 'LONG'], ['nexmark:bid','price', 'DOUBLE'] ] }) #RUNQUERY nexmark:auction ::= ACCESS({source='nexmark:auction', wrapper='GenericPush', transport='TCPClient', protocol='SizeByteBuffer', dataHandler='Tuple', options=[ ['host', 'localhost'], ['port', '65441'], ['ByteOrder', 'LittleEndian'] ], schema=[ ['timestamp', 'STARTTIMESTAMP'], ['id', 'INTEGER'], ['itemname', 'STRING'], ['description', 'STRING'], ['initialbid', 'INTEGER'], ['reserve', 'INTEGER'], ['expires', 'LONG'], ['seller', 'INTEGER'], ['category', 'INTEGER'] ] }) #RUNQUERY nexmark:category ::= ACCESS({source='nexmark:category', wrapper='GenericPush', transport='TCPClient', protocol='SizeByteBuffer', dataHandler='Tuple', options=[ ['host', 'localhost'], ['port', '65443'], ['ByteOrder', 'LittleEndian'] ], schema=[ ['id', 'INTEGER'], ['name', 'STRING'], ['description', 'STRING'], ['parentid', 'INTEGER'] ] }) |
...