@Override protected Iterator<A> computeNext() { return new AbstractIterator<A>() { int c = 0; @Override protected A computeNext() { if (c == count || !a.hasNext()) { endOfData(); return null; } return a.next(); } }; } };
@Override protected Iterator<T> computeNext() { if (currentRow != null) { while (currentRow.hasNext()) { currentRow.next(); } } if (!iterator.hasNext()) { return endOfData(); } currentRow = new AbstractIterator<T>() { int count = partitionSize; @Override protected T computeNext() { if (count == 0) { return endOfData(); } count--; if (iterator.hasNext()) { return iterator.next(); } else { if (!padToSize) { endOfData(); } return null; } } }; return currentRow; } };
return new AbstractIterator<Row<ByteBuffer, Composite>>() { @Override protected Row<ByteBuffer, Composite> computeNext() {
Iterator<Row> secondaryIterator = new AbstractIterator<Row>() { private Iterator<SoftReference<List<Row>>> _softGroupsIterator = softCache.iterator(); private Iterator<Row> _currentGroupIterator = null;
Iterator<Row> secondaryIterator = new AbstractIterator<Row>() { private Iterator<SoftReference<List<Row>>> _softGroupsIterator = softCache.iterator(); private Iterator<Row> _currentGroupIterator = null;