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.IndexWriter
An extension of Lucene IndexWriter to allow to track if writer is closed
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NexusIndexWriter.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.IndexWriterConfig
defaultConfig()
-
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, getNextMerge, getTragicException, hasDeletions, hasPendingMerges, hasUncommittedChanges, incRefDeleter, isEnableTestPoints, isOpen, maybeMerge, merge, numDeletedDocs, numDeletesToMerge, numRamDocs, 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.IOException
Deprecated.- Throws:
org.apache.lucene.index.CorruptIndexException
org.apache.lucene.store.LockObtainFailedException
java.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.CorruptIndexException
org.apache.lucene.store.LockObtainFailedException
java.io.IOException
-
-