HasNext checks if there is a next Tuple in either of the two TupleIterators.
()
| 104 | |
| 105 | // HasNext checks if there is a next Tuple in either of the two TupleIterators. |
| 106 | func (i *UniqueAttributeIterator) HasNext() bool { |
| 107 | // If either iterator has a next Tuple, return true |
| 108 | return i.iterator1.HasNext() || i.iterator2.HasNext() |
| 109 | } |
| 110 | |
| 111 | // GetNext returns the next unique Tuple from the two TupleIterators. |
| 112 | func (i *UniqueAttributeIterator) GetNext() (*base.Attribute, bool) { |