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:
Closeable
,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/interfaces inherited from class org.apache.lucene.index.IndexWriter
org.apache.lucene.index.IndexWriter.DocStats, org.apache.lucene.index.IndexWriter.IndexReaderWarmer
-
Field Summary
Fields inherited from class org.apache.lucene.index.IndexWriter
MAX_DOCS, MAX_POSITION, MAX_STORED_STRING_LENGTH, MAX_TERM_LENGTH, SOURCE, SOURCE_ADDINDEXES_READERS, SOURCE_FLUSH, SOURCE_MERGE, WRITE_LOCK_NAME
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
ConstructorDescriptionNexusIndexWriter
(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
Modifier and TypeMethodDescriptionstatic org.apache.lucene.index.IndexWriterConfig
Methods inherited from class org.apache.lucene.index.IndexWriter
addDocument, addDocuments, addIndexes, addIndexes, addIndexesReaderMerge, 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, updateDocuments, updateDocValues, updateNumericDocValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Constructor Details
-
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, IOException Deprecated.- Throws:
org.apache.lucene.index.CorruptIndexException
org.apache.lucene.store.LockObtainFailedException
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, IOException - Throws:
org.apache.lucene.index.CorruptIndexException
org.apache.lucene.store.LockObtainFailedException
IOException
-
-
Method Details
-
defaultConfig
public static org.apache.lucene.index.IndexWriterConfig defaultConfig()
-