org.openrdf.repository.augur.model
Class CachableAugurNode

java.lang.Object
  extended by org.openrdf.repository.augur.model.AugurNode
      extended by org.openrdf.repository.augur.model.AugurStatementNode
          extended by org.openrdf.repository.augur.model.CachableAugurNode
Direct Known Subclasses:
AugurObjectNode, AugurSubjectNode

public abstract class CachableAugurNode
extends AugurStatementNode

Extends the AugurStatementNode to allow caching of results.

Author:
James Leigh

Constructor Summary
CachableAugurNode()
           
 
Method Summary
 void cacheStatement(Statement stmt)
           
 void enableCache()
           
abstract  Resource getCarriedOverResource(Resource subj, Value obj)
           
 CloseableIteration<? extends Statement,QueryEvaluationException> getStatements(Resource subj, Value obj)
           
 void initCache(int version)
           
 boolean isCacheEnabled(int version)
           
 
Methods inherited from class org.openrdf.repository.augur.model.AugurStatementNode
createTuplePattern, getContextName, getObjectName, getPredicateName, getSubjectName, setObjectName, setStatementPattern, setSubjectName
 
Methods inherited from class org.openrdf.repository.augur.model.AugurNode
addChildNode, getChildNode, getConnection, getDepth, getTupleExpr, isIncludeInferred, setConnection, setDepth, setIncludeInferred, setTupleExpr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachableAugurNode

public CachableAugurNode()
Method Detail

getStatements

public CloseableIteration<? extends Statement,QueryEvaluationException> getStatements(Resource subj,
                                                                                      Value obj)

isCacheEnabled

public boolean isCacheEnabled(int version)

enableCache

public void enableCache()

initCache

public void initCache(int version)

cacheStatement

public void cacheStatement(Statement stmt)

getCarriedOverResource

public abstract Resource getCarriedOverResource(Resource subj,
                                                Value obj)


Copyright © 2004-2008 Aduna. All Rights Reserved.