com.bigdata.rdf.store
Class EmptyStatementIterator

java.lang.Object
  extended by com.bigdata.rdf.store.EmptyStatementIterator
All Implemented Interfaces:
BigdataStatementIterator, ICloseableIterator<BigdataStatement>, Iterator<BigdataStatement>

public class EmptyStatementIterator
extends Object
implements BigdataStatementIterator

Empty iterator.

Version:
$Id: EmptyStatementIterator.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
static BigdataStatementIterator INSTANCE
           
 
Method Summary
 void close()
          Closes the iterator, releasing any associated resources.
 boolean hasNext()
           
 BigdataStatement next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final transient BigdataStatementIterator INSTANCE
Method Detail

close

public void close()
           throws RuntimeException
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<BigdataStatement>
Throws:
RuntimeException

hasNext

public boolean hasNext()
                throws RuntimeException
Specified by:
hasNext in interface Iterator<BigdataStatement>
Throws:
RuntimeException

next

public BigdataStatement next()
                      throws RuntimeException
Specified by:
next in interface Iterator<BigdataStatement>
Throws:
RuntimeException

remove

public void remove()
            throws RuntimeException
Specified by:
remove in interface Iterator<BigdataStatement>
Throws:
RuntimeException


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.