public class EmptyStatementIterator extends Object implements BigdataStatementIterator
| Modifier and Type | Field and Description |
|---|---|
static BigdataStatementIterator |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the iterator, releasing any associated resources.
|
boolean |
hasNext() |
BigdataStatement |
next() |
void |
remove() |
public static final transient BigdataStatementIterator INSTANCE
public void close()
throws RuntimeException
ICloseableIteratorICloseableIterator.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.
close in interface ICloseableclose in interface ICloseableIterator<BigdataStatement>RuntimeExceptionpublic boolean hasNext()
throws RuntimeException
hasNext in interface Iterator<BigdataStatement>RuntimeExceptionpublic BigdataStatement next() throws RuntimeException
next in interface Iterator<BigdataStatement>RuntimeExceptionpublic void remove()
throws RuntimeException
remove in interface Iterator<BigdataStatement>RuntimeExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.