|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.inf.AbstractSPOBuffer
com.bigdata.rdf.inf.SPOAssertionBuffer
AbstractElementBuffer.InsertBuffer and AbstractSolutionBuffer.InsertSolutionBuffer and the
changes to how truth maintenance is handled (by rule rewrites).
public class SPOAssertionBuffer
A buffer for ISPOs and optional Justifications that is
flushed on overflow into a backing AbstractTripleStore.
| Field Summary | |
|---|---|
protected boolean |
justify
Deprecated. true iff the Truth Maintenance strategy requires that we focusStore Justifications for entailments. |
| Fields inherited from class com.bigdata.rdf.inf.AbstractSPOBuffer |
|---|
capacity, filter, numStmts, stmts |
| Fields inherited from interface com.bigdata.rdf.spo.ISPOBuffer |
|---|
DEBUG, INFO, log |
| Constructor Summary | |
|---|---|
SPOAssertionBuffer(AbstractTripleStore focusStore,
AbstractTripleStore db,
IElementFilter<ISPO> filter,
int capacity,
boolean justified)
Deprecated. Create a buffer. |
|
| Method Summary | |
|---|---|
boolean |
add(SPO stmt,
Justification justification)
Deprecated. When the buffer is nearCapacity() the statements in the buffer
will be flushed into the backing focusStore. |
void |
dump(AbstractTripleStore store)
Deprecated. Dumps the state of the buffer on System.err. |
int |
flush()
Deprecated. Flush any buffered statements to the backing store. |
AbstractTripleStore |
getFocusStore()
Deprecated. The focusStore on which the entailments computed by closure will be written. |
int |
getJustificationCount()
Deprecated. The #of justifications currently in the buffer. |
protected boolean |
nearCapacity()
Deprecated. Returns true iff there is no more space remaining in the buffer. |
| Methods inherited from class com.bigdata.rdf.inf.AbstractSPOBuffer |
|---|
add, get, getTermDatabase, isEmpty, size, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.bigdata.rdf.spo.ISPOBuffer |
|---|
add, isEmpty, size |
| Field Detail |
|---|
protected final boolean justify
Justifications for entailments.
| Constructor Detail |
|---|
public SPOAssertionBuffer(AbstractTripleStore focusStore,
AbstractTripleStore db,
IElementFilter<ISPO> filter,
int capacity,
boolean justified)
focusStore - The focusStore on which the entailments computed by closure
will be written (required). This is either the database or a
temporary focusStore used during incremental TM.db - The database in which the terms are defined (required).filter - Option filter. When present statements matched by the filter
are NOT retained by the SPOAssertionBuffer and will
NOT be added to the focusStore.capacity - The maximum SPOs that the buffer can hold before it
is flush()ed.justified - true iff the Truth Maintenance strategy requires that we
focusStore Justifications for entailments.| Method Detail |
|---|
public AbstractTripleStore getFocusStore()
public int getJustificationCount()
ISPOAssertionBuffer
getJustificationCount in interface ISPOAssertionBufferprotected boolean nearCapacity()
nearCapacity in class AbstractSPOBufferpublic int flush()
ISPOBuffer
flush in interface ISPOBufferflush in class AbstractSPOBuffer#flush(boolean)
public boolean add(SPO stmt,
Justification justification)
nearCapacity() the statements in the buffer
will be flushed into the backing focusStore.
add in interface ISPOAssertionBuffernearCapacity(),
flush()public void dump(AbstractTripleStore store)
AbstractSPOBufferSystem.err.
dump in class AbstractSPOBufferstore - Used to resolve the term identifiers to Values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||