Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a way to read all the Tuple and SubClassableTuple object at once?

object read tuple
0
Posted

Is there a way to read all the Tuple and SubClassableTuple object at once?

0

If I try a scan(new Tuple()) I get back all tuples of class Tuple. If I try scan(new SubclassableTuple()) I get back all tuples which inherit from SubclassableTuple. I can do a transaction to read both in at once, but then I have to do two loops to process the results. This is inconvenient also when I want to receive an event when ANY tuple is written as I have to register it twice. The TSpaces design for Tuple matching is that if you use SubclassableTuple, you don’t have to worry about a Tuple inadvertently matching your SublassableTuple just because the structure happens to match. We do have one somewhat exception to this in the DeleteAll command which is unfortunate. At this point, it is probably too late to remove DeleteAll and I hesitate to add a ScanAll command although perhaps that would be reasonable request. But I would not want to add any facility that causes a Tuple template to be a template match for a SubclassableTuple. However, you do have control over the matches() metho

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123