I have a classic time-series case using maps to store year/month/day/hour/minute/second vertices. These maps are all LINKMAPs where the links point to other vertices. They are not embedded, nor do I want them to be embedded. Now, using 2.1, getting these link maps from a vertex results in:
java.lang.ClassCastException: com.tinkerpop.blueprints.impls.orient.OrientElementIterable cannot be cast to java.util.Map
This happens because, in OrientElement.java at line 283, it checks to see if the document is embedded or the class name is null. If the document is not embedded or has a class (my case), it doesn't return the link map but converts it into an OrientElementIterable of just the values in the map.
Is there no way to store a true LINKMAP with links to external non-embedded vertices that belong to real classes get get it back again?
Thanks
Curtis
EDIT: found I could get the map using vertex.record.field("propName") instead of vertex.getProperty("propName").