Package org.apache.maven.index.context
Class NexusIndexWriter
- java.lang.Object
-
- org.apache.lucene.index.IndexWriter
-
- org.apache.maven.index.context.NexusIndexWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.lucene.index.MergePolicy.MergeContext,org.apache.lucene.index.TwoPhaseCommit,org.apache.lucene.util.Accountable
public class NexusIndexWriter extends org.apache.lucene.index.IndexWriterAn extension of Lucene IndexWriter to allow to track if writer is closed
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNexusIndexWriter.IndexWriterConfigFactory
-
Constructor Summary
Constructors Constructor Description NexusIndexWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.analysis.Analyzer analyzer, boolean create)Deprecated.NexusIndexWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.index.IndexWriterConfig config)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.lucene.index.IndexWriterConfigdefaultConfig()-
Methods inherited from class org.apache.lucene.index.IndexWriter
addDocument, addDocuments, addIndexes, addIndexes, advanceSegmentInfosVersion, close, commit, decRefDeleter, deleteAll, deleteDocuments, deleteDocuments, deleteUnusedFiles, doAfterFlush, doBeforeFlush, ensureOpen, ensureOpen, flush, flushNextBuffer, forceMerge, forceMerge, forceMergeDeletes, forceMergeDeletes, getAnalyzer, getConfig, getDirectory, getDocStats, getFieldNames, getFlushingBytes, getInfoStream, getLiveCommitData, getMaxCompletedSequenceNumber, getMergingSegments, getPendingNumDocs, getTragicException, hasDeletions, hasPendingMerges, hasUncommittedChanges, incRefDeleter, isEnableTestPoints, isOpen, maybeMerge, merge, mergeSuccess, numDeletedDocs, numDeletesToMerge, numRamDocs, onTragicEvent, prepareCommit, ramBytesUsed, rollback, setLiveCommitData, setLiveCommitData, softUpdateDocument, softUpdateDocuments, tryDeleteDocument, tryUpdateDocValue, updateBinaryDocValue, updateDocument, updateDocuments, updateDocValues, updateNumericDocValue
-
-
-
-
Constructor Detail
-
NexusIndexWriter
@Deprecated public NexusIndexWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.analysis.Analyzer analyzer, boolean create) throws org.apache.lucene.index.CorruptIndexException, org.apache.lucene.store.LockObtainFailedException, java.io.IOExceptionDeprecated.- Throws:
org.apache.lucene.index.CorruptIndexExceptionorg.apache.lucene.store.LockObtainFailedExceptionjava.io.IOException
-
NexusIndexWriter
public NexusIndexWriter(org.apache.lucene.store.Directory directory, org.apache.lucene.index.IndexWriterConfig config) throws org.apache.lucene.index.CorruptIndexException, org.apache.lucene.store.LockObtainFailedException, java.io.IOException- Throws:
org.apache.lucene.index.CorruptIndexExceptionorg.apache.lucene.store.LockObtainFailedExceptionjava.io.IOException
-
-