com.bigdata.btree
Class ReadOnlyEntryIterator<E>
java.lang.Object
com.bigdata.btree.ReadOnlyEntryIterator<E>
- All Implemented Interfaces:
- ITupleIterator<E>, Iterator<ITuple<E>>
public class ReadOnlyEntryIterator<E>
- extends Object
- implements ITupleIterator<E>
Iterator disallows remove().
- Version:
- $Id: ReadOnlyEntryIterator.java 3651 2010-09-28 10:59:12Z thompsonbry $
- Author:
- Bryan Thompson
|
Method Summary |
boolean |
hasNext()
|
ITuple<E> |
next()
Advance the iterator and return the ITuple from which you can
extract the data and metadata for next entry. |
void |
remove()
Disallowed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadOnlyEntryIterator
public ReadOnlyEntryIterator(ITupleIterator<E> src)
next
public ITuple<E> next()
- Description copied from interface:
ITupleIterator
- Advance the iterator and return the
ITuple from which you can
extract the data and metadata for next entry.
Note: An ITupleIterators will generally return the same
ITuple reference on on each invocation of this method. The caller
is responsible for copying out any data or metadata of interest before
calling ITupleIterator.next() again. See TupleFilter which is aware of
this and can be used to stack filters safely.
- Specified by:
next in interface ITupleIterator<E>- Specified by:
next in interface Iterator<ITuple<E>>
- Returns:
- The
ITuple containing the data and metadata for the
current index entry.
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<ITuple<E>>
remove
public void remove()
- Disallowed.
- Specified by:
remove in interface Iterator<ITuple<E>>
- Throws:
UnsupportedOperationException - always
Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.