/** * Get all VisualItems within the aggregate at the given table row. * @param row the table row of the aggregate * @return an iterator over the items in the aggregate */ public Iterator aggregatedTuples(int row) { return new AggregatedIterator(row); }
public AggregatedIterator(int row) { Index index = m_aggregated.index(AGGREGATE); m_rows = index.rows(row); advance(); } public boolean hasNext() {
/** * Get the size of the aggregate represented at the given table row. * Returns the number of visual items contained in the aggregation. * @return the aggregate size for the given row */ public int getAggregateSize(int row) { int size = 0; AggregatedIterator ati = new AggregatedIterator(row); for ( ; ati.hasNext(); ++size, ati.next() ); return size; }
public Object next() { Tuple retVal = m_next; advance(); return retVal; } private void advance() {