com.bigdata.rdf.inf
Class SPORetractionBuffer

java.lang.Object
  extended by com.bigdata.rdf.inf.AbstractSPOBuffer
      extended by com.bigdata.rdf.inf.SPORetractionBuffer
All Implemented Interfaces:
ISPOBuffer

Deprecated. by AbstractElementBuffer.DeleteBuffer and AbstractSolutionBuffer.DeleteSolutionBuffer and the changes to how truth maintenance is handled (rule rewrites).

public class SPORetractionBuffer
extends AbstractSPOBuffer

A buffer for SPOs which causes the corresponding statements (and their Justifications) be retracted from the database when it is flush()ed.

Version:
$Id: SPORetractionBuffer.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
 
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
SPORetractionBuffer(AbstractTripleStore store, int capacity, boolean computeClosureForStatementIdentifiers)
          Deprecated.  
 
Method Summary
 int flush()
          Deprecated. Flush any buffered statements to the backing store.
 
Methods inherited from class com.bigdata.rdf.inf.AbstractSPOBuffer
add, dump, get, getTermDatabase, isEmpty, nearCapacity, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SPORetractionBuffer

public SPORetractionBuffer(AbstractTripleStore store,
                           int capacity,
                           boolean computeClosureForStatementIdentifiers)
Deprecated. 
Parameters:
store - The database from which the statement will be removed when the buffer is flush()ed.
capacity - The capacity of the retraction buffer.
computeClosureForStatementIdentifiers - See AbstractTripleStore#removeStatements(com.bigdata.rdf.spo.ISPOIterator, boolean)
Method Detail

flush

public int flush()
Deprecated. 
Description copied from interface: ISPOBuffer
Flush any buffered statements to the backing store.

Specified by:
flush in interface ISPOBuffer
Specified by:
flush in class AbstractSPOBuffer
Returns:
The cumulative #of statements that were written on the indices since the last time the counter was reset. A statement that was previously an axiom or inferred and that is converted to an explicit statement by this method will be reported in this count as well as any statement that was not pre-existing in the database. Statement removal also counts as a "write".
See Also:
#flush(boolean)


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.