com.bigdata.rdf.store
Class BigdataValueIteratorImpl
java.lang.Object
com.bigdata.rdf.store.BigdataValueIteratorImpl
- All Implemented Interfaces:
- BigdataValueIterator, ICloseableIterator<BigdataValue>, Iterator<BigdataValue>
public class BigdataValueIteratorImpl
- extends Object
- implements BigdataValueIterator
Wraps an iterator that visits term identifiers and exposes each visited term
identifier as a BigdataValue (batch API).
- Version:
- $Id: BigdataValueIteratorImpl.java 4837 2011-07-05 13:31:31Z thompsonbry $
- Author:
- Bryan Thompson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BigdataValueIteratorImpl
public BigdataValueIteratorImpl(AbstractTripleStore db,
IChunkedIterator<IV> src)
- Parameters:
db - Used to resolve term identifiers to Value objects.src - The source iterator.
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<BigdataValue>
next
public BigdataValue next()
- Specified by:
next in interface Iterator<BigdataValue>
remove
public void remove()
- Specified by:
remove in interface Iterator<BigdataValue>
- Throws:
UnsupportedOperationException- TODO:
- this could be implemented if we saved the last term identifier
visited.
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. Implementations of
this interface MUST invoke
ICloseableIterator.close() if Iterator.hasNext()
method returns false to ensure that the iterator is closed
(and its resources release) as soon as it is exhausted.
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<BigdataValue>
Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.