/** {@inheritDoc} */ @Override public void close() throws IOException { mQualifierIterator.close(); if (mVersionIterator != null) { mVersionIterator.close(); } }
/** * Reports the next entry from the map-type family, or null. * * <p> * In effect, this pre-loads the next entry to return. * This allows to determine whether the iterator is finished or has more elements. * </p> * * @return the next entry from the map-type family, or null. * @throws IOException on I/O error. */ private Entry<T> getNext() throws IOException { while ((mVersionIterator == null) || !mVersionIterator.hasNext()) { if (!mQualifierIterator.hasNext()) { return null; } mQualifier = mQualifierIterator.next(); if (mVersionIterator != null) { mVersionIterator.close(); } mVersionIterator = new ColumnVersionIterator<T>(mRow, mFamily, mQualifier, mVersionPageSize); } final Map.Entry<Long, T> mapEntry = mVersionIterator.next(); return new Entry<T>(mQualifier, mapEntry.getKey(), mapEntry.getValue()); }