Vaibhav
Vaibhav

Reputation: 106

Is there a way to call an iterator inside an iterator in Accumulo?

I have two iterators applied on two tables and want the result to be available to a third iterator for further processing.

Basically what I am trying to perform is a join query across two tables server-side.

The first two iterators are filtering out some rows from Accumulo (Based on a criteria) and the third iterator is trying to perform a Join Query on the resultset.

Upvotes: 1

Views: 118

Answers (1)

ohshazbot
ohshazbot

Reputation: 903

No, you cannot. There is no mechanism to do a single server side operation against two different tables. Furthermore, there is no mechanism to do a single service side operation against two different tablets. If you need to access two different 'datasets' in a single iterator, you must colocate them in such a way that related tablets are one in the same.

This is covered with one strategy of having source tables and then combined indexes, which would satisfy that purpose.

Upvotes: 2

Related Questions