In the old version of Titan DB (ver 0.5.2), the TitanVertex and TitanEdge TitanElement interface which has a method getProperties(String key)
that I used to retrieve the property values of the element. This method has been removed in the new version of Titan (I am using version 1.0.0). Instead of this method, I found myself valueOrNull(PropertyKey key)
doing the same thing, but getting the PropertyKey as a parameter, not String as the key name.
What is the best way to get the value / values of a property only using the property key name as a String object?
Or is there an easy way to get a PropertyKey from a property key name as a String?
source
share