...
To access the different attribute values the KeyValueToTuple operator can be used to transform the required attributes into a relational tuple.
...
| Code Block | ||||||
|---|---|---|---|---|---|---|
| ||||||
input = ACCESS({source='source',
wrapper='GenericPush',
transport='TCPClientdirectory',
protocol='tika',
dataHandler='KeyValueObject',
options=[['hostdirectory','192.168.1.20'],['port','2111 '/var/log']]
})
out = KEYVALUETOTUPLE({
schema=[['content', 'String']],
type='Document',
keepinput='false'
},
input
) |