Class AbstractLuceneIndex
java.lang.Object
org.eclipse.rdf4j.sail.lucene.AbstractSearchIndex
org.eclipse.rdf4j.sail.lucene.AbstractLuceneIndex
- All Implemented Interfaces:
SearchIndex
- Direct Known Subclasses:
LuceneIndex
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Collection<AbstractReaderMonitor> keep a lit of old monitors that are still iterating but not closed (open iterators), will be all closed on shutdown items are removed from list by ReaderMnitor.endReading() when closingFields inherited from class AbstractSearchIndex
defaultNumDocs, maxDocs, wktFieldsModifier and TypeFieldDescriptionprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractSearchIndex
accept, addDocument, addDocuments, addRemoveStatements, addStatement, copyDocument, deleteDocument, evaluate, geoQuery, geoRelationQuery, getDocument, getDocuments, getIndexedTypeMapping, getResource, getSpatialContext, initialize, isGeoField, isIndexedTypeStatement, isTypeFilteringEnabled, isTypeStatement, newBulkUpdate, newDocument, parseLuceneQueryShape, parseQueryPoint, parseQueryShape, query, removeStatement, updateDocumentModifier and TypeMethodDescriptionbooleanReturns whether the provided literal is accepted by the LuceneIndex to be indexed.protected abstract voidfinal voidaddDocuments(Resource subject, List<Statement> statements) Add a complete Lucene Document based on these statements.final voidaddRemoveStatements(Collection<Statement> added, Collection<Statement> removed) Add many statements at the same time, remove many statements at the same time.final voidaddStatement(Statement statement) Indexes the specified Statement.protected abstract SearchDocumentprotected abstract voidfinal Collection<BindingSet> evaluate(SearchQueryEvaluator evaluator) protected abstract Iterable<? extends DocumentDistance> geoQuery(IRI geoProperty, org.locationtech.spatial4j.shape.Point p, IRI units, double distance, String distanceVar, Var context) protected abstract Iterable<? extends DocumentResult> geoRelationQuery(String relation, IRI geoProperty, String wkt, Var context) protected abstract SearchDocumentgetDocument(String id) protected abstract Iterable<? extends SearchDocument> getDocuments(String resourceId) protected ResourcegetResource(SearchDocument document) Returns the Resource corresponding with the specified Document.protected abstract org.locationtech.spatial4j.context.SpatialContextgetSpatialContext(String property) voidinitialize(Properties parameters) booleanisGeoField(String fieldName) Returns true if the given property contains a geometry.booleanisIndexedTypeStatement(Statement statement) Returns true if the given statement is a type statement of the right type, seeLuceneSail.INDEXEDTYPESto use.booleanis theLuceneSail.INDEXEDTYPESparameter set for this index.booleanisTypeStatement(Statement statement) Returns true if the given statement is a type statement, seeLuceneSail.INDEXEDTYPESto use.protected abstract BulkUpdaterprotected abstract SearchDocumentnewDocument(String id, String resourceId, String context) protected ObjectparseLuceneQueryShape(String property, String value) protected org.locationtech.spatial4j.shape.ShapeparseQueryPoint(String property, String value) protected org.locationtech.spatial4j.shape.ShapeparseQueryShape(String property, String value) protected abstract Iterable<? extends DocumentScore> final voidremoveStatement(Statement statement) Removes the specified Statement from the indexes.This should be called from within a begin-commit-rollbackprotected abstract voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SearchIndex
begin, clear, clearContexts, commit, rollback, shutDownModifier and TypeMethodDescriptionvoidbegin()Begins a transaction.voidclear()Clears the indexes.voidclearContexts(Resource... contexts) This should be called from within a begin-commit-rollback block.voidcommit()Commits any changes done to the LuceneIndex since the last commit.The semantics is synchronous to SailConnection.commit(), i.e. the LuceneIndex should be committed/rolled back whenever the LuceneSailConnection is committed/rolled back.voidrollback()voidshutDown()
-
Field Details
-
oldmonitors
keep a lit of old monitors that are still iterating but not closed (open iterators), will be all closed on shutdown items are removed from list by ReaderMnitor.endReading() when closing
-
-
Constructor Details
-
AbstractLuceneIndex
public AbstractLuceneIndex()
-
-
Method Details
-
getCurrentMonitor
-
getOldMonitors
-