org.openrdf.sail.optimistic.helpers
Class ExternalModel

java.lang.Object
  extended by org.openrdf.query.algebra.QueryModelNodeBase
      extended by org.openrdf.query.algebra.evaluation.impl.ExternalSet
          extended by org.openrdf.sail.optimistic.helpers.ExternalModel
All Implemented Interfaces:
Cloneable, QueryModelNode, TupleExpr

public class ExternalModel
extends ExternalSet

When evaluated will return the contents of a Model.

Author:
James Leigh

Constructor Summary
ExternalModel(StatementPattern sp, Dataset dataset)
           
ExternalModel(StatementPattern sp, Dataset dataset, BindingSet bindings)
           
 
Method Summary
 double cardinality()
           
 ExternalModel clone()
           
 CloseableIteration<BindingSet,QueryEvaluationException> evaluate(BindingSet bindings)
           
 Model filter(Model model, BindingSet bindings)
           
 Set<String> getBindingNames()
           
 void setModel(Model model)
           
 
Methods inherited from class org.openrdf.query.algebra.evaluation.impl.ExternalSet
getAssuredBindingNames, visit
 
Methods inherited from class org.openrdf.query.algebra.QueryModelNodeBase
getParentNode, getSignature, replaceChildNode, replaceWith, setParentNode, toString, visitChildren
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.algebra.QueryModelNode
getParentNode, getSignature, replaceChildNode, replaceWith, setParentNode, toString, visitChildren
 

Constructor Detail

ExternalModel

public ExternalModel(StatementPattern sp,
                     Dataset dataset)

ExternalModel

public ExternalModel(StatementPattern sp,
                     Dataset dataset,
                     BindingSet bindings)
Method Detail

setModel

public void setModel(Model model)

clone

public ExternalModel clone()
Specified by:
clone in interface QueryModelNode
Specified by:
clone in interface TupleExpr
Overrides:
clone in class ExternalSet

filter

public Model filter(Model model,
                    BindingSet bindings)

getBindingNames

public Set<String> getBindingNames()
Specified by:
getBindingNames in interface TupleExpr
Overrides:
getBindingNames in class ExternalSet

cardinality

public double cardinality()
Overrides:
cardinality in class ExternalSet

evaluate

public CloseableIteration<BindingSet,QueryEvaluationException> evaluate(BindingSet bindings)
                                                                 throws QueryEvaluationException
Specified by:
evaluate in class ExternalSet
Throws:
QueryEvaluationException


Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.