Class LuceneIndexNIOFS
java.lang.Object
org.eclipse.rdf4j.sail.lucene.AbstractSearchIndex
org.eclipse.rdf4j.sail.lucene.AbstractLuceneIndex
org.eclipse.rdf4j.sail.lucene.impl.LuceneIndex
org.eclipse.rdf4j.sail.lucene.impl.LuceneIndexNIOFS
- All Implemented Interfaces:
SearchIndex
LuceneIndex which uses a NIOFSDirectory instead of MMapDirectory to avoid the JVM crash (see
http://
stackoverflow.com/questions/8224843/jvm-crashes-on-lucene-datainput- readvint).
- Author:
- andriy.nikolov
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.sail.lucene.impl.LuceneIndex
currentMonitorFields inherited from class org.eclipse.rdf4j.sail.lucene.AbstractLuceneIndex
oldmonitorsFields inherited from class org.eclipse.rdf4j.sail.lucene.AbstractSearchIndex
defaultNumDocs, maxDocs, wktFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.store.DirectorycreateDirectory(Properties parameters) Methods inherited from class org.eclipse.rdf4j.sail.lucene.impl.LuceneIndex
addContextField, addDocument, addIDField, addPredicateField, addResourceField, addStoredOnlyPredicateField, addTextField, begin, clear, clearContexts, commit, copyDocument, createAnalyzer, createQueryAnalyzer, createSimilarity, createSpatialStrategyMapper, deleteDocument, geoQuery, geoRelationQuery, getAnalyzer, getCurrentMonitor, getDirectory, getDocument, getDocument, getDocument, getDocuments, getDocuments, getIndexReader, getIndexSearcher, getIndexWriter, getSnippet, getSpatialContext, getSpatialStrategyMapper, initialize, newBulkUpdate, newDocument, query, rollback, search, search, search, search, shutDown, updateDocumentMethods inherited from class org.eclipse.rdf4j.sail.lucene.AbstractLuceneIndex
getOldMonitorsMethods inherited from class org.eclipse.rdf4j.sail.lucene.AbstractSearchIndex
accept, addDocuments, addRemoveStatements, addStatement, evaluate, getIndexedTypeMapping, getResource, isGeoField, isIndexedTypeStatement, isTypeFilteringEnabled, isTypeStatement, parseLuceneQueryShape, parseQueryPoint, parseQueryShape, removeStatement
-
Constructor Details
-
LuceneIndexNIOFS
public LuceneIndexNIOFS()
-
-
Method Details
-
createDirectory
protected org.apache.lucene.store.Directory createDirectory(Properties parameters) throws IOException - Overrides:
createDirectoryin classLuceneIndex- Throws:
IOException
-