[ https://issues.apache.org/jira/browse/IGNITE-3345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16369693#comment-16369693 ]
Alexey Kuznetsov commented on IGNITE-3345: ------------------------------------------ Added support for Java built in types for put/get operations via "keyType" and "valueType" optional parameters. List of supported types: * java.lang.Boolean (with alias boolean) * java.lang.Byte (with alias byte) * java.lang.Short (with alias short) * java.lang.Integer (with aliases int, integer) * java.lang.Long (with alias long) * java.lang.Float (with alias float) * java.lang.Double (with alias double) * java.sql.Date (with alias date) * java.sql.Time (with alias time) * java.sql.Timestamp (with alias timestamp) * java.util.UUUID (with alias uuid) * org.apache.ignite.lang.IgniteUuid (with alias IgniteUuid) For Date, Time, Timestamp value should be in format as specified in *valueOf(String)* methods of corresponding classes. Example for date: "2018-01-01" see [https://docs.oracle.com/javase/8/docs/api/java/sql/Date.html#valueOf-java.lang.String-] Example for time: "01:01:01" see [https://docs.oracle.com/javase/8/docs/api/java/sql/Time.html#valueOf-java.lang.String-] Example for timestamp: "2018-02-18%2001:01:01" see [https://docs.oracle.com/javase/8/docs/api/java/sql/Timestamp.html#valueOf-java.lang.String-] > Implement support for optional key type in REST HTTP get command > ---------------------------------------------------------------- > > Key: IGNITE-3345 > URL: https://issues.apache.org/jira/browse/IGNITE-3345 > Project: Ignite > Issue Type: Task > Components: cache, rest > Affects Versions: 1.6 > Reporter: Alexey Kuznetsov > Assignee: Pavel Konstantinov > Priority: Major > Fix For: 2.5 > > > It seems that in current implementation > (https://apacheignite.readme.io/docs/rest-api#get) > GET command could work only with String keys. > We can add optional parameter "keyType" and implement support for common > built-in types such as Integer, Long, UUID,... and user classes that a valid > JavaBeans. > Sample: http://host:port/ignite?cmd=get&key=1&cacheName=myCache&keyType=Long -- This message was sent by Atlassian JIRA (v7.6.3#76005)