com.bigdata.rdf.spo
Interface ISPOBuffer

All Known Subinterfaces:
ISPOAssertionBuffer
All Known Implementing Classes:
AbstractSPOBuffer, SPOAssertionBuffer, SPORetractionBuffer

Deprecated. by IBuffer

public interface ISPOBuffer

A buffer for SPOs. ISPOBuffers are used to collect SPOs into chunks that can be sorted in order to support efficient batch operations on statement indices.

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

Field Summary
static boolean DEBUG
          Deprecated. True iff the log level is DEBUG or less.
static boolean INFO
          Deprecated. True iff the log level is INFO or less.
static org.apache.log4j.Logger log
          Deprecated.  
 
Method Summary
 boolean add(ISPO spo)
          Deprecated. Adds an ISPO.
 int flush()
          Deprecated. Flush any buffered statements to the backing store.
 boolean isEmpty()
          Deprecated. True iff there are no statements in the buffer.
 int size()
          Deprecated. The #of statements currently in the buffer.
 

Field Detail

log

static final org.apache.log4j.Logger log
Deprecated. 

INFO

static final boolean INFO
Deprecated. 
True iff the log level is INFO or less.


DEBUG

static final boolean DEBUG
Deprecated. 
True iff the log level is DEBUG or less.

Method Detail

size

int size()
Deprecated. 
The #of statements currently in the buffer.


isEmpty

boolean isEmpty()
Deprecated. 
True iff there are no statements in the buffer.


add

boolean add(ISPO spo)
Deprecated. 
Adds an ISPO.

Parameters:
spo - The ISPO.
Returns:
true if the buffer will store the statement (i.e., the statement is not excluded by the filter).

flush

int flush()
Deprecated. 
Flush any buffered statements to the backing store.

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-2012 SYSTAP, LLC. All Rights Reserved.