Class TripleMatchFrame
- java.lang.Object
-
- org.apache.jena.reasoner.rulesys.impl.FrameObject
-
- org.apache.jena.reasoner.rulesys.impl.GenericChoiceFrame
-
- org.apache.jena.reasoner.rulesys.impl.GenericTripleMatchFrame
-
- org.apache.jena.reasoner.rulesys.impl.TripleMatchFrame
-
public class TripleMatchFrame extends GenericTripleMatchFrame
Frame on the choice point stack used to represent the state of a direct graph triple match.This is used in the inner loop of the interpreter and so is a pure data structure not an abstract data type and assumes privileged access to the interpreter state.
-
-
Constructor Summary
Constructors Constructor Description TripleMatchFrame(LPInterpreter interpreter)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Override close method to reclaim the iterator.void
init(LPInterpreter interpreter)
Initialize the triple match to preserve the current context of the given LPInterpreter and search for the match defined by the current argument registersboolean
nextMatch(LPInterpreter interpreter)
Find the next result triple and bind the result vars appropriately.-
Methods inherited from class org.apache.jena.reasoner.rulesys.impl.GenericTripleMatchFrame
bindResult, functorMatch
-
Methods inherited from class org.apache.jena.reasoner.rulesys.impl.GenericChoiceFrame
setContinuation
-
Methods inherited from class org.apache.jena.reasoner.rulesys.impl.FrameObject
fastLinkTo, getLink, linkTo
-
-
-
-
Constructor Detail
-
TripleMatchFrame
public TripleMatchFrame(LPInterpreter interpreter)
Constructor. Initialize the triple match to preserve the current context of the given LPInterpreter and search for the match defined by the current argument registers- Parameters:
interpreter
- the interpreter instance whose env, trail and arg values are to be preserved
-
-
Method Detail
-
nextMatch
public boolean nextMatch(LPInterpreter interpreter)
Find the next result triple and bind the result vars appropriately.- Parameters:
interpreter
- the calling interpreter whose trail should be used- Returns:
- false if there are no more matches in the iterator.
-
init
public void init(LPInterpreter interpreter)
Initialize the triple match to preserve the current context of the given LPInterpreter and search for the match defined by the current argument registers- Overrides:
init
in classGenericTripleMatchFrame
- Parameters:
interpreter
- the interpreter instance whose env, trail and arg values are to be preserved
-
close
public void close()
Override close method to reclaim the iterator.- Overrides:
close
in classFrameObject
-
-