/** * Delegated to the underlying iterator. * * @return iterator position */ public long getPosition() { return iterator.getPosition(); }
/** * Returns the current position within this iterator. The number * returned is the 0-based index of the next <code>Row</code> in the iterator, * i.e. the one that will be returned on the subsequent <code>next</code> call. * <p> * Note that this method does not check if there is a next element, * i.e. an empty iterator will always return 0. * * @return the current position withing this iterator. * @see RangeIterator#getPosition() */ public long getPosition() { return rows.getPosition(); }
/** * Delegated to the underlying iterator. * * @return iterator position */ public long getPosition() { return iterator.getPosition(); }
/** * Returns the position of the underlying iterator. * * @return position of the iterator * @see RangeIterator#getPosition() */ public long getPosition() { return iterator.getPosition(); }
/** * Delegated to the underlying iterator. * * @return iterator position */ public long getPosition() { return iterator.getPosition(); }
/** * Returns the current position within this iterator. The number * returned is the 0-based index of the next <code>Row</code> in the iterator, * i.e. the one that will be returned on the subsequent <code>next</code> call. * <p> * Note that this method does not check if there is a next element, * i.e. an empty iterator will always return 0. * * @return the current position withing this iterator. * @see RangeIterator#getPosition() */ public long getPosition() { return rows.getPosition(); }
/** * Delegated to the underlying iterator. * * @return iterator position */ public long getPosition() { return iterator.getPosition(); }
@Override public long getPosition() { return delegate.getPosition(); }
public RangeIteratorImpl(RangeIterator rangeIterator) { this.iterator = rangeIterator; this.size = rangeIterator.getSize(); this.position = rangeIterator.getPosition(); }
public long getPosition() { return getDelegate().getPosition(); }
/** * Returns an array of remote references to the next elements in this * iteration. * * @return array of remote references, or <code>null</code> * @throws RemoteException on RMI errors */ @Override public Object[] nextObjects() throws RemoteException { ArrayList items = new ArrayList(); while (items.size() < maxBufferSize && iterator.hasNext()) { items.add(getRemoteObject(iterator.next())); } if (items.size() > 0) { return items.toArray(new Object[items.size()]); } else { size = iterator.getPosition(); return null; } }