The dialect We want to be able to specify query hints that are specific for Apache Ignite needs the feature a particular dialect . For example, in Apache Ignite have 3 types of SQL queries. 1) local queries. it is queries possible to specify that performed in one local a query should run only on the node ( [local queries|https://apacheignite.readme.io/v2.1/docs/local-queries] ) 2) queries that performed in cluster and filter one cache (entity) 3) queries with distributed join. It even if the data is queries that performed in cluster and filter many caches (entities) ([ distributed -joins|https://apacheignite . readme.io/v2.1/docs/sql-queries#distributed-joins]) In this way, developer need to have possibility to select required type of query. I offer do it by using query hints. Example:
{code:java} Query query = em.createQuery( "select p from Person p where p.name=\"Ivan\"" ); query.setHint("org.hibernate.ignite.localquery",true); {code}
|
|