com.bigdata.rdf.sail
Class HitConvertor

java.lang.Object
  extended by com.bigdata.rdf.sail.HitConvertor
All Implemented Interfaces:
info.aduna.iteration.CloseableIteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>, info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>

public class HitConvertor
extends Object
implements info.aduna.iteration.CloseableIteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>

Converts the term identifiers from a text search into variable bindings.

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

Constructor Summary
HitConvertor(AbstractTripleStore database, Iterator<IHit> src, org.openrdf.query.algebra.Var svar, org.openrdf.query.BindingSet bindings)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 org.openrdf.query.BindingSet next()
          Binds the next BigdataValue (must be a Literal).
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HitConvertor

public HitConvertor(AbstractTripleStore database,
                    Iterator<IHit> src,
                    org.openrdf.query.algebra.Var svar,
                    org.openrdf.query.BindingSet bindings)
Method Detail

close

public void close()
           throws org.openrdf.query.QueryEvaluationException
Specified by:
close in interface info.aduna.iteration.CloseableIteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>
Throws:
org.openrdf.query.QueryEvaluationException

hasNext

public boolean hasNext()
                throws org.openrdf.query.QueryEvaluationException
Specified by:
hasNext in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>
Throws:
org.openrdf.query.QueryEvaluationException

next

public org.openrdf.query.BindingSet next()
                                  throws org.openrdf.query.QueryEvaluationException
Binds the next BigdataValue (must be a Literal).

Specified by:
next in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>
Throws:
org.openrdf.query.QueryEvaluationException

remove

public void remove()
            throws org.openrdf.query.QueryEvaluationException
Specified by:
remove in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>
Throws:
org.openrdf.query.QueryEvaluationException


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