The Object translator is a bridge for reading java objects from external sources (i.e., Infinispan Cache or Map cache) and delivering them to the engine for processing. And to assist in providing that bridge, the OBJECTTABLE function can be used to transform complex java objects into rows and columns.
The following are the translator types supported by the Object Translator:
-
infinispan-cache
-
map-cache
cache
Supports a local cache that is of type Map and it uses key searching on the map to find objects.
Supported Capabilities
The following are the connector capabilities when Key Searching is used:
Currently only supports read only.
infinispan-cache
Supports Infinispan/JDG cache and has the options for using either DSL searching (JDG 6.3+), Hibernate/Lucene searching, or Key searching (when no indexing is used). See the jdg-local-cache quick start for an example.
Installation
The infinispan-cache translator is not configured, out-of-the-box, in the standalone-teiid.xml configuration. To configure the translator, run the add-infinispan-cache-translator.cli script. This script can also be found in the teiid-jboss-dist.zip kit, under docs/teiid/datasources/infinispan.
Execution Properties
Name
|
Description
|
Required
|
Default
|
SupportsLuceneSearching
|
Setting to true assumes your objects are annotated and Hibernate/Lucene will be used to search the cache
|
N
|
false
|
SupportsDSLSearching
|
Setting to true assumes your are using JDG v6.3 or better and your cache has indexing enabled
|
N
|
false
|
Supported Capabilities
The following are the connector capabilities when Key Searching is used:
The following are the connector capabilities when Hibernate/Lucene Searching is enabled:
-
SELECT command
-
CompareCriteria - EQ, NE, LT, GT, etc.
-
And/Or Criteria
-
In Criteria
-
Like Criterai
-
Or Criteria
-
INSERT, UPDATE, DELETE