Alexey Goncharuk created IGNITE-952:
---------------------------------------
Summary: Implement queries capabilities over the Hibernate L2 cache data
Key: IGNITE-952
URL:
https://issues.apache.org/jira/browse/IGNITE-952 Project: Ignite
Issue Type: Bug
Components: cache
Reporter: Alexey Goncharuk
Hibernate stores values in cache using the following classes:
{{org.hibernate.cache.spi.CacheKey}} and {{org.hibernate.cache.spi.entry.CacheEntry}}, in particular {{org.hibernate.cache.spi.entry.StandardCacheEntryImpl}} The latter contains a classname of the cached value and an array of field values. There is no a direct way to run Ignite queries over this data.
The missing metadata for indexing can be obtained with {{SessionFactory.getClassMetadata(...)}} and stored into a system cache (or be provided to indexing in any other convenient way, for example, in the cache configuration for the corresponding Hibernate region). Given this metadata, indexing should be able to run queries over the stored fields.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)