|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UpdateBuffer
A buffer for triplestore updates.
Field Summary | |
---|---|
static int |
ADD_UPDATE_TYPE
|
static int |
DELETE_UPDATE_TYPE
|
static int |
EITHER_UPDATE_TYPE
|
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. |
Field Detail |
---|
static final int ADD_UPDATE_TYPE
static final int DELETE_UPDATE_TYPE
static final int EITHER_UPDATE_TYPE
Method Detail |
---|
void add(java.util.List triples) throws java.io.IOException
java.io.IOException
void add(org.jrdf.graph.Triple triple) throws java.io.IOException
java.io.IOException
void delete(java.util.List triples) throws java.io.IOException
java.io.IOException
void delete(org.jrdf.graph.Triple triple) throws java.io.IOException
java.io.IOException
int size()
int safeCapacity()
void flush(TriplestoreSession session) throws java.io.IOException, TrippiException
java.io.IOException
TrippiException
void setFlushErrorHandler(FlushErrorHandler h)
void close() throws java.io.IOException
java.io.IOException
java.util.List findBufferedUpdates(org.jrdf.graph.SubjectNode subject, org.jrdf.graph.PredicateNode predicate, org.jrdf.graph.ObjectNode object, int updateType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |