[jira] [Created] (IGNITE-984) Add translation of primitive types to object types.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-984) Add translation of primitive types to object types.

Anton Vinogradov (Jira)
Alexey Kuznetsov created IGNITE-984:
---------------------------------------

             Summary: Add translation of primitive types to object types.
                 Key: IGNITE-984
                 URL: https://issues.apache.org/jira/browse/IGNITE-984
             Project: Ignite
          Issue Type: Task
          Components: cache
    Affects Versions: sprint-1
            Reporter: Alexey Kuznetsov
            Priority: Trivial
             Fix For: sprint-6


In some cases (especially from Scala) user could register types that would be compiled into primitive type, by Ignite cache could only work with object types, so it would be useful to translate primitive types to its object counterparts.

For example (scala code):
   fooCacheCfg.setIndexedTypes(classOf[Int], classOf[Foo])

Where Int is a Scala type and should be transparently translated into java.lang.Integer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)