com.bigdata.rdf.sail
Class Bigdata2Sesame2BindingSetIterator<E extends Exception>
java.lang.Object
com.bigdata.rdf.sail.Bigdata2Sesame2BindingSetIterator<E>
- Type Parameters:
E - The generic type of the thrown exception.
- All Implemented Interfaces:
- info.aduna.iteration.CloseableIteration<org.openrdf.query.BindingSet,E>, info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,E>
public class Bigdata2Sesame2BindingSetIterator<E extends Exception>
- extends Object
- implements info.aduna.iteration.CloseableIteration<org.openrdf.query.BindingSet,E>
Aligns bigdata ICloseableIterator IBindingSets containing
BigdataValues with a Sesame 2 CloseableIteration visiting
Sesame 2 BindingSets.
- Version:
- $Id: Bigdata2Sesame2BindingSetIterator.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
|
Field Summary |
protected static org.apache.log4j.Logger |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
Bigdata2Sesame2BindingSetIterator
public Bigdata2Sesame2BindingSetIterator(ICloseableIterator<IBindingSet> src)
- Parameters:
src - The source iterator (will be closed when this iterator is
closed). All bound values in the visited IBindingSets
MUST be BigdataValues.
hasNext
public boolean hasNext()
throws E extends Exception
- Specified by:
hasNext in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,E extends Exception>
- Throws:
E extends Exception
next
public org.openrdf.query.BindingSet next()
throws E extends Exception
- Specified by:
next in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,E extends Exception>
- Throws:
E extends Exception
getBindingSet
protected org.openrdf.query.BindingSet getBindingSet(IBindingSet sourceBindingSet)
- Aligns a bigdata
IBindingSet with the Sesame 2 BindingSet.
- Parameters:
sourceBindingSet - A bigdata IBindingSet containing only
BigdataValues.
- Returns:
- The corresponding Sesame 2
BindingSet.
- Throws:
IllegalArgumentException - if the argument is null.
ClassCastException - if a bound value is not a BigdataValue.
remove
public void remove()
throws E extends Exception
- Specified by:
remove in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,E extends Exception>
- Throws:
UnsupportedOperationException
E extends Exception
close
public void close()
throws E extends Exception
- Specified by:
close in interface info.aduna.iteration.CloseableIteration<org.openrdf.query.BindingSet,E extends Exception>
- Throws:
E extends Exception
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.