Versions Compared

Key

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

The Tika protocol handler allows to use the Apache Tika framework to parse arbitrary documents.

Options

none

Example

To access the different attribute values the KeyValueToTuple operator can be used to transform the required attributes into a relational tuple.

PQL

Code Block
languagepql
titleExample
linenumberstrue
input = ACCESS({source='source', 
                wrapper='GenericPush',
                transport='TCPClient',
                protocol='tika',
                dataHandler='KeyValueObject',
                options=[['host','192.168.1.20'],['port','2111']]
})

out = KEYVALUETOTUPLE({
          schema=[['content', 'String']],
          type='Document',
          keepinput='false' 
        },
        input
      )