AbstractArrayBuffer, but this class is more tightly
coupled to the AbstractTripleStore.public abstract class AbstractSPOBuffer extends Object implements ISPOBuffer
SPOs for some batch api operation.| Modifier and Type | Field and Description |
|---|---|
protected int |
capacity
Deprecated.
The buffer capacity.
|
protected IElementFilter<ISPO> |
filter
Deprecated.
An optional filter.
|
protected int |
numStmts
Deprecated.
The #of statements currently in
stmts |
protected ISPO[] |
stmts
Deprecated.
The array in which the statements are stored.
|
DEBUG, INFO, log| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSPOBuffer(AbstractTripleStore store,
IElementFilter<ISPO> filter,
int capacity)
Deprecated.
Create a buffer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ISPO stmt)
Deprecated.
Adds an
ISPO. |
void |
dump(AbstractTripleStore store)
Deprecated.
Dumps the state of the buffer on
System.err. |
abstract int |
flush()
Deprecated.
Flush any buffered statements to the backing store.
|
ISPO |
get(int i)
Deprecated.
The
SPO at the given index (used by some unit tests). |
protected AbstractTripleStore |
getTermDatabase()
Deprecated.
The database in which the term identifiers are defined - this is
exposed ONLY for use in logging messages.
|
boolean |
isEmpty()
Deprecated.
True iff there are no statements in the buffer.
|
protected boolean |
nearCapacity()
Deprecated.
Returns true iff there is no more space remaining in the buffer.
|
int |
size()
Deprecated.
The #of statements currently in the buffer.
|
String |
toString()
Deprecated.
|
protected final ISPO[] stmts
protected int numStmts
stmtsprotected final IElementFilter<ISPO> filter
SPOAssertionBuffer.protected final int capacity
protected AbstractSPOBuffer(AbstractTripleStore store, IElementFilter<ISPO> filter, int capacity)
store - The database used to resolve term identifiers in log
statements (optional).filter - Option filter. When present statements matched by the filter
are NOT retained by the SPOAssertionBuffer and will
NOT be added to the store.capacity - The maximum #of Statements, URIs, Literals, or BNodes that the
buffer can hold.public int size()
ISPOBuffersize in interface ISPOBufferpublic boolean isEmpty()
ISPOBufferisEmpty in interface ISPOBufferpublic ISPO get(int i)
SPO at the given index (used by some unit tests).i - protected AbstractTripleStore getTermDatabase()
protected boolean nearCapacity()
public abstract int flush()
ISPOBufferflush in interface ISPOBuffer#flush(boolean)public boolean add(ISPO stmt)
ISPOBufferISPO.add in interface ISPOBufferstmt - The ISPO.public void dump(AbstractTripleStore store)
System.err.store - Used to resolve the term identifiers to Values.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.