-
1. Re: Please guide me regarding ExecutionFactory implementation
rareddy Apr 18, 2018 9:29 AM (in response to klmurty)Execute the query sent to Data Source by Teiid engine or query sent by the user to Teiid engine?
-
2. Re: Please guide me regarding ExecutionFactory implementation
klmurty Apr 18, 2018 11:26 AM (in response to rareddy)Thanks for reply Ramesh.
What methods do i need to override ??
Any init() kind of method available ?,
Can we override/implement that method to execute pre-fucntionality before executing the actual query
-
3. Re: Please guide me regarding ExecutionFactory implementation
rareddy Apr 18, 2018 11:53 AM (in response to klmurty)You did not answer my question, and asking vague questions we have no context in giving a right answer
-
4. Re: Please guide me regarding ExecutionFactory implementation
shawkins Apr 18, 2018 2:19 PM (in response to rareddy)> What methods do i need to override ??
That depends on what you are trying to accomplish. The typical development approach is to start by looking at an existing translator that is closest to what you are trying to develop: teiid/connectors at master · teiid/teiid · GitHub
See Translator Development · Teiid Documentation and you can also setup a new project using maven: https://github.com/teiid/teiid-tools/blob/master/arche-types/translator-archetype/TranslatorArcheType.adoc
> Any init() kind of method available ?,
Yes there is a start method.
> Can we override/implement that method to execute pre-fucntionality before executing the actual query
No, it is a one-time method. Each query must go through createExecution, or one of the sub methods - for example createResultSetExecution
-
5. Re: Please guide me regarding ExecutionFactory implementation
klmurty Apr 19, 2018 1:11 AM (in response to klmurty)Execute the query sent to Data Source by Teiid engine
-
6. Re: Please guide me regarding ExecutionFactory implementation
klmurty Apr 19, 2018 1:12 AM (in response to klmurty)I need answers for both questions.
1) Execute the query sent to Data Source by Teiid engine
2) query sent by the user to Teiid engine
-
7. Re: Please guide me regarding ExecutionFactory implementation
rareddy Apr 19, 2018 8:20 AM (in response to klmurty)Look for PreParser in document for user query. For Teiid query to change, either extend the translator or write new one tt suit your needs .