org.eclipse.rdf4j.sail.lucene

## 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

      public abstract class AbstractLuceneIndex
      extends AbstractSearchIndex

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Collection<AbstractReaderMonitor>` | `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

    - ### Fields inherited from class org.eclipse.rdf4j.sail.lucene.AbstractSearchIndex

      `maxDocs, wktFields`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractLuceneIndex()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `beginReading()`
    `void` | `endReading()`
    `protected abstract AbstractReaderMonitor` | `getCurrentMonitor()`
    `Collection<AbstractReaderMonitor>` | `getOldMonitors()`

    - ### Methods inherited from class org.eclipse.rdf4j.sail.lucene.AbstractSearchIndex

      `accept, addDocument, addDocuments, addRemoveStatements, addStatement, copyDocument, deleteDocument, evaluate, evaluate, geoQuery, geoRelationQuery, getDocument, getDocuments, getResource, getSpatialContext, initialize, isGeoField, newBulkUpdate, newDocument, parseLuceneQueryShape, parseQuery, parseQueryPoint, parseQueryShape, query, removeStatement, updateDocument`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.eclipse.rdf4j.sail.lucene.SearchIndex

      `begin, clear, clearContexts, commit, rollback, shutDown`

- - ### Field Detail

    - #### oldmonitors

          protected final Collection<AbstractReaderMonitor> 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 Detail

    - #### AbstractLuceneIndex

          public AbstractLuceneIndex()

  - ### Method Detail

    - #### getCurrentMonitor

          protected abstract AbstractReaderMonitor getCurrentMonitor()

    - #### beginReading

          public void beginReading()

    - #### endReading

          public void endReading()
                          throws IOException

      Throws:
        `IOException`

    - #### getOldMonitors

          public Collection<AbstractReaderMonitor> getOldMonitors()

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.