1

Is there a possibility to query Xodus EntityStore by the property as "inset" operation? This is not possible based on existing Xodus API but maybe this is possible to do with custom Comparable and ComparableBinding by PersistentEntityStore.registerCustomPropertyType()?

falcon
  • 372
  • 3
  • 19
  • What do you mean by "inset" operation? – lehvolk Mar 15 '19 at 10:12
  • @lehvolk I mean find entities by is property in a set (like SQL's IN operation). Xodus API gives a possibility to find by equality and find in range. – falcon Mar 15 '19 at 13:39

1 Answers1

2

There are a union and intersect operations in EntityIterable interface so you could use them:

txn.findWithProp("User", "name1").union(txn.findWithProp("User", "name2"))

PS: you can take a look to the xodus-dnq there are API for persistent model and API for retrieving data from database.

lehvolk
  • 233
  • 1
  • 4