Currently, I have made 3 queries (resulting in 3 cursors), and then I merged the cursors using the MergeCursor
class. However, this has caused duplicates in the cursor, and I can't seem to find a way to remove them? What would be the ideal method to fix this problem?
A Cursor is an object tied to the ResultSet, not the data therein. If the three result-sets have identical keys, their primary-keys will need to be fetched to de-duplicate the rows - the Cursor implementation does not provide this function. There are several options, two named here: