|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.rdf.listeners.StatementListener
com.hp.hpl.jena.query.larq.IndexBuilderModel
public abstract class IndexBuilderModel
Root class for index creation from a graph or model. This class can be used as a Model listener to index while loading data. It also provides the ability to index from a StmtIterator. Once completed, the index builder should be closed for writing, then the getIndex() called. To update the index once closed, the application should create a new index builder. Any index readers (e.g. IndexLARQ objects) need to be recreated and registered.
| Constructor Summary | |
|---|---|
IndexBuilderModel()
Create an in-memory index |
|
IndexBuilderModel(java.io.File fileDir)
Create an on-disk index |
|
IndexBuilderModel(org.apache.lucene.index.IndexWriter existingWriter)
Manage a Lucene index that has already been created |
|
IndexBuilderModel(java.lang.String fileDir)
Create an on-disk index |
|
| Method Summary | |
|---|---|
void |
addedStatement(com.hp.hpl.jena.rdf.model.Statement s)
ModelListener interface : statement added to the model |
void |
closeWriter()
Close the index - no more updates possible |
void |
flushWriter()
Flush the index, optimizing it, to allow a reader to be created |
IndexLARQ |
getIndex()
Get a search index used by LARQ. |
abstract void |
indexStatement(com.hp.hpl.jena.rdf.model.Statement s)
Update index based on one statement |
void |
indexStatements(com.hp.hpl.jena.rdf.model.StmtIterator sIter)
Index all the statements from a StmtIterator |
void |
removedStatement(com.hp.hpl.jena.rdf.model.Statement s)
ModelListener interface : statement taken out of the model |
void |
unindexStatement(com.hp.hpl.jena.rdf.model.Statement s)
Remove index information |
| Methods inherited from class com.hp.hpl.jena.rdf.listeners.StatementListener |
|---|
addedStatements, addedStatements, addedStatements, addedStatements, notifyEvent, removedStatements, removedStatements, removedStatements, removedStatements |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexBuilderModel()
public IndexBuilderModel(org.apache.lucene.index.IndexWriter existingWriter)
public IndexBuilderModel(java.io.File fileDir)
public IndexBuilderModel(java.lang.String fileDir)
| Method Detail |
|---|
public void removedStatement(com.hp.hpl.jena.rdf.model.Statement s)
removedStatement in interface com.hp.hpl.jena.rdf.model.ModelChangedListenerremovedStatement in class com.hp.hpl.jena.rdf.listeners.StatementListenerpublic void unindexStatement(com.hp.hpl.jena.rdf.model.Statement s)
public void addedStatement(com.hp.hpl.jena.rdf.model.Statement s)
addedStatement in interface com.hp.hpl.jena.rdf.model.ModelChangedListeneraddedStatement in class com.hp.hpl.jena.rdf.listeners.StatementListenerpublic void indexStatements(com.hp.hpl.jena.rdf.model.StmtIterator sIter)
public abstract void indexStatement(com.hp.hpl.jena.rdf.model.Statement s)
public void flushWriter()
public void closeWriter()
public IndexLARQ getIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||