public static class Justification.VisitedSPOSet extends Object
SPO
objects (either fully bound or query
patterns) that have already been visited.
Note: This is a very specialized SPO
set implementation. How it
is created and destroyed is tightly integrated with how
TruthMaintenance
works.
Constructor and Description |
---|
Justification.VisitedSPOSet(TemporaryRawStore tempStore)
|
public Justification.VisitedSPOSet(TemporaryRawStore tempStore)
SPO
set backed by a BTree
on the temporary
store associated with the [focusStore] on which truth maintenance is
being performed. The data written on this set will not last longer
than
Justification.isGrounded(InferenceEngine, TempTripleStore, AbstractTripleStore, SPO, boolean, boolean)
. When that method exists it close()
s this
Justification.VisitedSPOSet
which causes the BTree
to be discarded
but DOES NOT close the backing store since it is still in use by
TruthMaintenance
.tempStore
- The backing store on which the set will be maintained.
This is the [focusStore] for TruthMaintenance
.public boolean add(ISPO spo)
spo
- true
iff the set did not already contain the
element (i.e., if the element was added to the set).public long size()
public void close()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.