|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TriplestoreWriter
A TriplestoreReader that also provides buffered write access.
| Method Summary | |
|---|---|
void |
add(java.util.List triples,
boolean flush)
Add a series of triples to the store. |
void |
add(org.jrdf.graph.Triple triple,
boolean flush)
Add a single triple to the store. |
void |
add(TripleIterator iter,
boolean flush)
Add a series of triples to the store. |
void |
delete(java.util.List triples,
boolean flush)
Remove a series of triples from the store. |
void |
delete(org.jrdf.graph.Triple triple,
boolean flush)
Remove a single triple from the store (convenience method). |
void |
delete(TripleIterator iter,
boolean flush)
Remove a series of triples from the store. |
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 TripleUpdates currently in queue. |
void |
flushBuffer()
Flush the buffer (write the changes to the triplestore). |
int |
getBufferSize()
Get the current size of the buffer. |
void |
setFlushErrorHandler(FlushErrorHandler h)
Set the (optional) handler that will recieve failed flush notification. |
| Methods inherited from interface org.trippi.TriplestoreReader |
|---|
close, countTriples, countTriples, countTriples, countTuples, findTriples, findTriples, findTriples, findTuples, getAliasMap, listTripleLanguages, listTupleLanguages, setAliasMap |
| Method Detail |
|---|
void add(java.util.List triples,
boolean flush)
throws java.io.IOException,
TrippiException
triples - a list of Triple objectsflush - whether to flush the buffer before returning
java.io.IOException
TrippiException
void add(TripleIterator iter,
boolean flush)
throws java.io.IOException,
TrippiException
iter - an iterator over the triplesflush - whether to flush the buffer before returning
java.io.IOException
TrippiException
void add(org.jrdf.graph.Triple triple,
boolean flush)
throws java.io.IOException,
TrippiException
triple - the Triple to addflush - whether to flush the buffer before returning
java.io.IOException
TrippiException
void delete(java.util.List triples,
boolean flush)
throws java.io.IOException,
TrippiException
triples - a list of Triple objectsflush - whether to flush the buffer before returning
java.io.IOException
TrippiException
void delete(TripleIterator iter,
boolean flush)
throws java.io.IOException,
TrippiException
iter - an iterator over the triplesflush - whether to flush the buffer before returning
java.io.IOException
TrippiException
void delete(org.jrdf.graph.Triple triple,
boolean flush)
throws java.io.IOException,
TrippiException
triple - the Triple to deleteflush - whether to flush the buffer before returning
java.io.IOException
TrippiException
void flushBuffer()
throws java.io.IOException,
TrippiException
java.io.IOException
TrippiExceptionvoid setFlushErrorHandler(FlushErrorHandler h)
int getBufferSize()
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 | ||||||||