Extending JBoss Data Virt ws translator to handle

2019-07-28 09:54发布

What is a good way to extend org.teiid.translator.ws to read a complete set of records by iterating over all pages returned by a paginated webservice?

1条回答
干净又极端
2楼-- · 2019-07-28 10:19

Since the pagination of results is not part of any REST API standard (unlike OData), you would have to extend the current translator and provide that custom behaviour to scroll through the pagination. Unlike JDBC kind of resultset scrolling, you would need to devise a way to execute the URL with your offsets each time the Teiid engine asks for next batch of results. If you want an example take look at OData translator for similar flow.

查看更多
登录 后发表回答