|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jena.larq.IndexBuilderBase
org.apache.jena.larq.IndexBuilderNode
public class IndexBuilderNode
Helper class for index creation from external content. 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 | |
|---|---|
IndexBuilderNode()
Create an in-memory index |
|
IndexBuilderNode(File fileDir)
Create an on-disk index |
|
IndexBuilderNode(org.apache.lucene.index.IndexWriter existingWriter)
Manage a Lucene index that has already been created |
|
IndexBuilderNode(String fileDir)
Create an on-disk index |
|
| Method Summary | |
|---|---|
void |
index(com.hp.hpl.jena.graph.Node node,
Reader indexStream)
|
void |
index(com.hp.hpl.jena.graph.Node node,
String indexStr)
|
void |
index(com.hp.hpl.jena.rdf.model.RDFNode rdfNode,
Reader indexStream)
|
void |
index(com.hp.hpl.jena.rdf.model.RDFNode rdfNode,
String indexStr)
|
void |
unindex(com.hp.hpl.jena.graph.Node node,
Reader inputStream)
|
void |
unindex(com.hp.hpl.jena.graph.Node node,
String indexStr)
|
void |
unindex(com.hp.hpl.jena.rdf.model.RDFNode rdfNode,
Reader inputStream)
|
void |
unindex(com.hp.hpl.jena.rdf.model.RDFNode rdfNode,
String indexStr)
|
| Methods inherited from class org.apache.jena.larq.IndexBuilderBase |
|---|
avoidDuplicates, closeWriter, closeWriter, flushWriter, getIndex, setAvoidDuplicates |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexBuilderNode()
public IndexBuilderNode(org.apache.lucene.index.IndexWriter existingWriter)
public IndexBuilderNode(File fileDir)
public IndexBuilderNode(String fileDir)
| Method Detail |
|---|
public void index(com.hp.hpl.jena.rdf.model.RDFNode rdfNode,
String indexStr)
public void index(com.hp.hpl.jena.rdf.model.RDFNode rdfNode,
Reader indexStream)
public void index(com.hp.hpl.jena.graph.Node node,
String indexStr)
public void index(com.hp.hpl.jena.graph.Node node,
Reader indexStream)
public void unindex(com.hp.hpl.jena.rdf.model.RDFNode rdfNode,
String indexStr)
public void unindex(com.hp.hpl.jena.graph.Node node,
String indexStr)
public void unindex(com.hp.hpl.jena.rdf.model.RDFNode rdfNode,
Reader inputStream)
public void unindex(com.hp.hpl.jena.graph.Node node,
Reader inputStream)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||