Class 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  
      • 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
    • 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
      • 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 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
    • Method Detail

      • defaultConfig

        public static org.apache.lucene.index.IndexWriterConfig defaultConfig()