com.bigdata.rdf.inf
Class BackchainTypeResourceIterator.PushbackIterator<E>
java.lang.Object
com.bigdata.rdf.inf.BackchainTypeResourceIterator.PushbackIterator<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- ICloseableIterator<E>, Iterator<E>
- Enclosing class:
- BackchainTypeResourceIterator
public static class BackchainTypeResourceIterator.PushbackIterator<E>
- extends Object
- implements Iterator<E>, ICloseableIterator<E>
Implementation class for BackchainTypeResourceIterator.PushbackFilter.
- Version:
- $Id: BackchainTypeResourceIterator.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
|
Method Summary |
void |
close()
Closes the iterator, releasing any associated resources. |
boolean |
hasNext()
|
E |
next()
|
void |
pushback()
Push the value onto the internal buffer. |
void |
remove()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BackchainTypeResourceIterator.PushbackIterator
public BackchainTypeResourceIterator.PushbackIterator(Iterator<E> src)
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<E>
next
public E next()
- Specified by:
next in interface Iterator<E>
pushback
public void pushback()
- Push the value onto the internal buffer. It will be returned by the
next call to
next().
- Parameters:
value - The value.
- Throws:
IllegalStateException - if there is already a value pushed back.
remove
public void remove()
- Specified by:
remove in interface Iterator<E>
close
public void close()
- Description copied from interface:
ICloseableIterator
- Closes the iterator, releasing any associated resources. This method MAY
be invoked safely if the iterator is already closed.
Note: Implementations that support Iterator.remove() MUST NOT
eagerly close the iterator when it is exhausted since that would make it
impossible to remove the last visited statement. Instead they MUST wait
for an explicit ICloseableIterator.close() by the application.
- Specified by:
close in interface ICloseableIterator<E>
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.