|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.inf.AbstractSPOBuffer
AbstractArrayBuffer, but this class is more tightly
coupled to the AbstractTripleStore.
public abstract class AbstractSPOBuffer
Abtract base class for buffering SPOs for some batch api operation.
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface com.bigdata.rdf.spo.ISPOBuffer |
|---|
DEBUG, INFO, log |
| Constructor Summary | |
|---|---|
protected |
AbstractSPOBuffer(AbstractTripleStore store,
IElementFilter<ISPO> filter,
int capacity)
Deprecated. Create a buffer. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final ISPO[] stmts
protected int numStmts
stmts
protected final IElementFilter<ISPO> filter
SPOAssertionBuffer.
protected final int capacity
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public int size()
ISPOBuffer
size in interface ISPOBufferpublic boolean isEmpty()
ISPOBuffer
isEmpty 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 String toString()
toString in class Objectpublic abstract int flush()
ISPOBuffer
flush 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||