[TinkerPop 3] Java enums as vertex/edge property values

44 views
Skip to first unread message

Vladyslav Kosulin

unread,
May 14, 2015, 10:53:34 AM5/14/15
to gremli...@googlegroups.com
Most of my properties have predefined limited dictionary.

Using Enum should improve performance of my application code (EnumSet, EnumMap), and I hope that TinkerPop filter traversals should be also faster compared to, say, String values, and be at least on par with Integer values.

Should I be aware of any portability/compatibility drawbacks to using enum types as property values? For example, when DB was created with one VM, but accessed from another (including different major version).

Looking at Enum source code, it looks like safe approach (and is unlikely to be changed in future java revisions), but I have no idea about possible serialization approaches and instrumentations various engines may apply to objects.

Reply all
Reply to author
Forward
0 new messages