Is there a way for Xodus API to check the type of property?
Xodus have a method txn.getEntityTypes();
but I have not found a way to get the property types of a given Entity Type, is that possible?
Asked
Active
Viewed 51 times
1 Answers
1
There is no way to get property types of a given entity type. In case if all entities of the given entity type have the same set of properties, one can take an entity of given entity type and use method “entity.getPropertyNames()”.

Vyacheslav Lukianov
- 1,913
- 8
- 12
-
We have a API that let's client write data with flexible types, but I want to prevent a property to be saved with different type, for example if a property is already set to be String then it should not allow to save other types, like a Number or Object, just String will be allowed, for reasons that you have said before if two property are different then it would break find – quarks Sep 14 '18 at 18:06
-
@xybrek there is no possibility to check types that way out-of-the-box. – Vyacheslav Lukianov Sep 18 '18 at 11:04
-
Thanks, we have solved this with the approach in this answer, getting the properties and iterating over it checking the value types – quarks Oct 01 '18 at 16:54