com.hp.hpl.jena.query.larq
Class IndexBuilderSubject

java.lang.Object
  extended by com.hp.hpl.jena.rdf.listeners.StatementListener
      extended by com.hp.hpl.jena.query.larq.IndexBuilderModel
          extended by com.hp.hpl.jena.query.larq.IndexBuilderSubject
All Implemented Interfaces:
com.hp.hpl.jena.rdf.model.ModelChangedListener

public class IndexBuilderSubject
extends IndexBuilderModel

Class for indexing by subject (i.e. index is a literal and the index returns the subject). Often the application can provide an additional property to further restrict what gets indexed.


Constructor Summary
IndexBuilderSubject()
           
IndexBuilderSubject(File fileDir)
           
IndexBuilderSubject(org.apache.lucene.index.IndexWriter existingWriter)
           
IndexBuilderSubject(com.hp.hpl.jena.rdf.model.Property p)
           
IndexBuilderSubject(com.hp.hpl.jena.rdf.model.Property p, File fileDir)
           
IndexBuilderSubject(com.hp.hpl.jena.rdf.model.Property p, org.apache.lucene.index.IndexWriter existingWriter)
           
IndexBuilderSubject(com.hp.hpl.jena.rdf.model.Property p, String fileDir)
           
IndexBuilderSubject(String fileDir)
           
 
Method Summary
 void indexStatement(com.hp.hpl.jena.rdf.model.Statement s)
          Update index based on one statement
 void unindexStatement(com.hp.hpl.jena.rdf.model.Statement s)
          Remove index information
 
Methods inherited from class com.hp.hpl.jena.query.larq.IndexBuilderModel
addedStatement, closeWriter, flushWriter, getIndex, indexStatements, removedStatement
 
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

IndexBuilderSubject

public IndexBuilderSubject()

IndexBuilderSubject

public IndexBuilderSubject(org.apache.lucene.index.IndexWriter existingWriter)

IndexBuilderSubject

public IndexBuilderSubject(File fileDir)

IndexBuilderSubject

public IndexBuilderSubject(String fileDir)

IndexBuilderSubject

public IndexBuilderSubject(com.hp.hpl.jena.rdf.model.Property p)

IndexBuilderSubject

public IndexBuilderSubject(com.hp.hpl.jena.rdf.model.Property p,
                           org.apache.lucene.index.IndexWriter existingWriter)

IndexBuilderSubject

public IndexBuilderSubject(com.hp.hpl.jena.rdf.model.Property p,
                           File fileDir)

IndexBuilderSubject

public IndexBuilderSubject(com.hp.hpl.jena.rdf.model.Property p,
                           String fileDir)
Method Detail

unindexStatement

public void unindexStatement(com.hp.hpl.jena.rdf.model.Statement s)
Description copied from class: IndexBuilderModel
Remove index information

Overrides:
unindexStatement in class IndexBuilderModel

indexStatement

public void indexStatement(com.hp.hpl.jena.rdf.model.Statement s)
Description copied from class: IndexBuilderModel
Update index based on one statement

Specified by:
indexStatement in class IndexBuilderModel


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010 Epimorphics Ltd.