org.openrdf.repository.augur.helpers
Class AStatementIterator<X extends Exception>

java.lang.Object
  extended by info.aduna.iteration.CloseableIterationBase<T,X>
      extended by info.aduna.iteration.ConvertingIteration<Statement,Statement,X>
          extended by org.openrdf.repository.augur.helpers.AStatementIterator<X>
All Implemented Interfaces:
CloseableIteration<Statement,X>, Iteration<Statement,X>

public class AStatementIterator<X extends Exception>
extends ConvertingIteration<Statement,Statement,X>

Tags every Resource with a AugurNode by wrapping it in a AResource.

Author:
James Leigh

Field Summary
 
Fields inherited from class info.aduna.iteration.CloseableIterationBase
logger
 
Constructor Summary
AStatementIterator(Iteration<? extends Statement,X> iter, AugurNode node, String subj, String obj)
           
AStatementIterator(Iteration<? extends Statement,X> iter, AugurStatementNode node)
           
 
Method Summary
protected  Statement convert(Statement stmt)
           
 Value convertObject(Value obj)
           
 Resource convertSubject(Resource subj)
           
 
Methods inherited from class info.aduna.iteration.ConvertingIteration
handleClose, hasNext, next, remove
 
Methods inherited from class info.aduna.iteration.CloseableIterationBase
close, isClosed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AStatementIterator

public AStatementIterator(Iteration<? extends Statement,X> iter,
                          AugurStatementNode node)

AStatementIterator

public AStatementIterator(Iteration<? extends Statement,X> iter,
                          AugurNode node,
                          String subj,
                          String obj)
Method Detail

convert

protected Statement convert(Statement stmt)
Specified by:
convert in class ConvertingIteration<Statement,Statement,X extends Exception>

convertSubject

public Resource convertSubject(Resource subj)

convertObject

public Value convertObject(Value obj)


Copyright © 2004-2008 Aduna. All Rights Reserved.