|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.Parameterized
org.fcrepo.server.Pluggable
org.fcrepo.server.Module
org.fcrepo.server.resourceIndex.ResourceIndexModule
public class ResourceIndexModule
Fedora's ResourceIndex as a configurable module.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary |
|---|
| Fields inherited from interface org.fcrepo.server.resourceIndex.ResourceIndex |
|---|
INDEX_LEVEL_OFF, INDEX_LEVEL_ON |
| Constructor Summary | |
|---|---|
ResourceIndexModule(Map<String,String> parameters,
Server server,
String role)
Instantiate the module. |
|
| Method Summary | |
|---|---|
void |
add(List<org.jrdf.graph.Triple> triples,
boolean flush)
|
void |
add(org.jrdf.graph.Triple triple,
boolean flush)
|
void |
add(org.trippi.TripleIterator triples,
boolean flush)
|
void |
addObject(DOReader reader)
Adds the appripriate triples implied by the given object to the ResourceIndex. |
void |
close()
|
int |
countTriples(String queryLang,
String tripleQuery,
int limit,
boolean distinct)
|
int |
countTriples(String queryLang,
String tupleQuery,
String tripleTemplate,
int limit,
boolean distinct)
|
int |
countTriples(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object,
int limit)
|
int |
countTuples(String queryLang,
String tupleQuery,
int limit,
boolean distinct)
|
void |
delete(List<org.jrdf.graph.Triple> triples,
boolean flush)
|
void |
delete(org.jrdf.graph.Triple triple,
boolean flush)
|
void |
delete(org.trippi.TripleIterator triples,
boolean flush)
|
void |
deleteObject(DOReader oldReader)
Removes the triples implied by a given object from the ResourceIndex. |
void |
export(OutputStream out,
org.trippi.RDFFormat format)
Exports all triples in the RI. |
List<org.trippi.TripleUpdate> |
findBufferedUpdates(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object,
int updateType)
|
org.trippi.TripleIterator |
findTriples(String queryLang,
String tripleQuery,
int limit,
boolean distinct)
|
org.trippi.TripleIterator |
findTriples(String queryLang,
String tupleQuery,
String tripleTemplate,
int limit,
boolean distinct)
|
org.trippi.TripleIterator |
findTriples(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object,
int limit)
|
org.trippi.TupleIterator |
findTuples(String queryLang,
String tupleQuery,
int limit,
boolean distinct)
|
void |
flushBuffer()
|
Map<String,String> |
getAliasMap()
|
int |
getBufferSize()
|
int |
getIndexLevel()
Gets the index level of the ResourceIndex. |
void |
initModule()
Perform post-initialization of this module. |
String[] |
listTripleLanguages()
|
String[] |
listTupleLanguages()
|
void |
modifyObject(DOReader oldReader,
DOReader newReader)
Updates any appropriate triples implied a modified object. |
void |
setAliasMap(Map<String,String> aliasToPrefix)
|
void |
setFlushErrorHandler(org.trippi.FlushErrorHandler h)
|
void |
shutdownModule()
Shutdown the RI module by closing the wrapped ResourceIndex. |
| Methods inherited from class org.fcrepo.server.Module |
|---|
getRole, getServer, postInitModule |
| Methods inherited from class org.fcrepo.server.Pluggable |
|---|
getHelp, getOptionalParameters, getParameterHelp, getRequiredModuleRoles, getRequiredParameters |
| Methods inherited from class org.fcrepo.server.Parameterized |
|---|
getParameter, getParameter, getParameter, getParameterList, getParameters, getParameters, parameterNames, setParameter, setParameters, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceIndexModule(Map<String,String> parameters,
Server server,
String role)
throws ModuleInitializationException
ModuleInitializationException| Method Detail |
|---|
public void initModule()
throws ModuleInitializationException
INDEX_LEVEL_OFF, and INDEX_LEVEL_ON.
initModule in class ModuleModuleInitializationException - If initialization values are invalid or initialization fails for
some other reason.
public void shutdownModule()
throws ModuleShutdownException
shutdownModule in class ModuleModuleShutdownException - if any error occurs while closing.public int getIndexLevel()
getIndexLevel in interface ResourceIndex
public void addObject(DOReader reader)
throws ResourceIndexException
addObject in interface ResourceIndexreader - The given object to index.
ResourceIndexException - If the triples can't be added for any reason.
public void modifyObject(DOReader oldReader,
DOReader newReader)
throws ResourceIndexException
modifyObject in interface ResourceIndexoldReader - Pre-modification version of the oject.newReader - Post-modification version of the object.
ResourceIndexException - If the triples can't be updated for any reason.
public void deleteObject(DOReader oldReader)
throws ResourceIndexException
deleteObject in interface ResourceIndexoldReader - Object whose triples shall be removed from the index.
ResourceIndexException - If the triples can't be removed for any reason.
public void export(OutputStream out,
org.trippi.RDFFormat format)
throws ResourceIndexException
export in interface ResourceIndexout - the output stream to which the RDF should be written. The caller
is responsible for eventually closing this stream.format - the output format (RDF_XML, TURTLE, N_TRIPLESs, etc).
ResourceIndexException - if triples in the RI cannot be serialized for any reason.
public void setAliasMap(Map<String,String> aliasToPrefix)
throws org.trippi.TrippiException
setAliasMap in interface org.trippi.TriplestoreReaderorg.trippi.TrippiException
public Map<String,String> getAliasMap()
throws org.trippi.TrippiException
getAliasMap in interface org.trippi.TriplestoreReaderorg.trippi.TrippiException
public org.trippi.TupleIterator findTuples(String queryLang,
String tupleQuery,
int limit,
boolean distinct)
throws org.trippi.TrippiException
findTuples in interface org.trippi.TriplestoreReaderorg.trippi.TrippiException
public int countTuples(String queryLang,
String tupleQuery,
int limit,
boolean distinct)
throws org.trippi.TrippiException
countTuples in interface org.trippi.TriplestoreReaderorg.trippi.TrippiException
public org.trippi.TripleIterator findTriples(String queryLang,
String tripleQuery,
int limit,
boolean distinct)
throws org.trippi.TrippiException
findTriples in interface org.trippi.TriplestoreReaderorg.trippi.TrippiException
public int countTriples(String queryLang,
String tripleQuery,
int limit,
boolean distinct)
throws org.trippi.TrippiException
countTriples in interface org.trippi.TriplestoreReaderorg.trippi.TrippiException
public org.trippi.TripleIterator findTriples(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object,
int limit)
throws org.trippi.TrippiException
findTriples in interface org.trippi.TriplestoreReaderorg.trippi.TrippiException
public int countTriples(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object,
int limit)
throws org.trippi.TrippiException
countTriples in interface org.trippi.TriplestoreReaderorg.trippi.TrippiException
public org.trippi.TripleIterator findTriples(String queryLang,
String tupleQuery,
String tripleTemplate,
int limit,
boolean distinct)
throws org.trippi.TrippiException
findTriples in interface org.trippi.TriplestoreReaderorg.trippi.TrippiException
public int countTriples(String queryLang,
String tupleQuery,
String tripleTemplate,
int limit,
boolean distinct)
throws org.trippi.TrippiException
countTriples in interface org.trippi.TriplestoreReaderorg.trippi.TrippiExceptionpublic String[] listTupleLanguages()
listTupleLanguages in interface org.trippi.TriplestoreReaderpublic String[] listTripleLanguages()
listTripleLanguages in interface org.trippi.TriplestoreReader
public void close()
throws org.trippi.TrippiException
close in interface org.trippi.TriplestoreReaderorg.trippi.TrippiException
public void add(List<org.jrdf.graph.Triple> triples,
boolean flush)
throws IOException,
org.trippi.TrippiException
add in interface org.trippi.TriplestoreWriterIOException
org.trippi.TrippiException
public void add(org.trippi.TripleIterator triples,
boolean flush)
throws IOException,
org.trippi.TrippiException
add in interface org.trippi.TriplestoreWriterIOException
org.trippi.TrippiException
public void add(org.jrdf.graph.Triple triple,
boolean flush)
throws IOException,
org.trippi.TrippiException
add in interface org.trippi.TriplestoreWriterIOException
org.trippi.TrippiException
public void delete(List<org.jrdf.graph.Triple> triples,
boolean flush)
throws IOException,
org.trippi.TrippiException
delete in interface org.trippi.TriplestoreWriterIOException
org.trippi.TrippiException
public void delete(org.trippi.TripleIterator triples,
boolean flush)
throws IOException,
org.trippi.TrippiException
delete in interface org.trippi.TriplestoreWriterIOException
org.trippi.TrippiException
public void delete(org.jrdf.graph.Triple triple,
boolean flush)
throws IOException,
org.trippi.TrippiException
delete in interface org.trippi.TriplestoreWriterIOException
org.trippi.TrippiException
public void flushBuffer()
throws IOException,
org.trippi.TrippiException
flushBuffer in interface org.trippi.TriplestoreWriterIOException
org.trippi.TrippiExceptionpublic void setFlushErrorHandler(org.trippi.FlushErrorHandler h)
setFlushErrorHandler in interface org.trippi.TriplestoreWriterpublic int getBufferSize()
getBufferSize in interface org.trippi.TriplestoreWriter
public List<org.trippi.TripleUpdate> findBufferedUpdates(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object,
int updateType)
findBufferedUpdates in interface org.trippi.TriplestoreWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||