tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TINKERPOP-1274) GraphSON Version 2.0
Date Fri, 08 Jul 2016 12:54:10 GMT

    [ https://issues.apache.org/jira/browse/TINKERPOP-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15367627#comment-15367627
] 

ASF GitHub Bot commented on TINKERPOP-1274:
-------------------------------------------

Github user newkek commented on the issue:

    https://github.com/apache/tinkerpop/pull/351
  
    @robertdale the format you suggest would lead to the same inconsistencies as in GraphSON
1.0. Since the type is at the same level than the data itself, whether the container is an
Array or an Object, the type format would not be the same. I just pushed a change in the format
that is the one @PommeVerte suggested, which gives a consistent format, without the concern
of unordered Lists (for reference the new format is `{"@type" : "typeName", "@value" : value}`.
    
    > please correct me if I'm wrong, but it doesn't look like the code does any dynamic
serializing.
    
    The `TypeIdResolver` which is the object that the serializers will call to get a TypeID
from a java `Object` is dynamic in a way, in the sense that it returns `o.getClass().getSimpleName()`.
So there is no `object` -> typeID index reference. However for the Deser, as explained
in the description, Java by default doesn't offer a way to get a Class by its simple name,
so the `TypeIdResolver` needs to keep a reference index of typeID(which is a class's simple
name) -> Java `Class`. Don't know if that answers your question..


> GraphSON Version 2.0
> --------------------
>
>                 Key: TINKERPOP-1274
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1274
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: io
>    Affects Versions: 3.1.2-incubating
>            Reporter: stephen mallette
>            Priority: Minor
>             Fix For: 3.2.1
>
>
> Develop a revised version of GraphSON that provides better support for non-JVM languages
that consume it. 



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

Mime
View raw message