|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.impl.base.MemUpdateBuffer
public class MemUpdateBuffer
A memory buffer for triplestore updates.
Field Summary |
---|
Fields inherited from interface org.trippi.impl.base.UpdateBuffer |
---|
ADD_UPDATE_TYPE, DELETE_UPDATE_TYPE, EITHER_UPDATE_TYPE |
Constructor Summary | |
---|---|
MemUpdateBuffer(int safeCapacity,
int flushBatchSize)
|
Method Summary | |
---|---|
void |
add(java.util.List triples)
Buffer the addition of the given triples. |
void |
add(org.jrdf.graph.Triple triple)
Buffer the addition of the given triple. |
void |
close()
Close the buffer, releasing any associated system resources. |
void |
delete(java.util.List triples)
Buffer the deletion of the given triples. |
void |
delete(org.jrdf.graph.Triple triple)
Buffer the deletion of the given triple. |
java.util.List |
findBufferedUpdates(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object,
int updateType)
Returns an unmodifiable List of the TripleUpdates currently in queue. |
void |
flush(TriplestoreSession session)
Flush the contents of the buffer to the triplestore. |
int |
safeCapacity()
Get the number of triples that the buffer can safely contain. |
void |
setFlushErrorHandler(FlushErrorHandler h)
Set the (optional) handler that will recieve failed flush notification. |
int |
size()
Get the number of triples currently in the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemUpdateBuffer(int safeCapacity, int flushBatchSize)
Method Detail |
---|
public void add(java.util.List triples)
UpdateBuffer
add
in interface UpdateBuffer
public void add(org.jrdf.graph.Triple triple)
UpdateBuffer
add
in interface UpdateBuffer
public void delete(java.util.List triples)
UpdateBuffer
delete
in interface UpdateBuffer
public void delete(org.jrdf.graph.Triple triple)
UpdateBuffer
delete
in interface UpdateBuffer
public int size()
UpdateBuffer
size
in interface UpdateBuffer
public int safeCapacity()
UpdateBuffer
safeCapacity
in interface UpdateBuffer
public void flush(TriplestoreSession session) throws TrippiException
flush
in interface UpdateBuffer
TrippiException
public void setFlushErrorHandler(FlushErrorHandler h)
UpdateBuffer
setFlushErrorHandler
in interface UpdateBuffer
public void close()
close
in interface UpdateBuffer
public java.util.List findBufferedUpdates(org.jrdf.graph.SubjectNode subject, org.jrdf.graph.PredicateNode predicate, org.jrdf.graph.ObjectNode object, int updateType)
UpdateBuffer
findBufferedUpdates
in interface UpdateBuffer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |