Метод | Описание | |
---|---|---|
Dispose ( ) : void |
Метод | Описание | |
---|---|---|
Abort ( ) : void |
Called if we hit an exception at a bad time (when updating the index files) and must discard all currently buffered docs. This resets our state, discarding any docs added since last flush.
|
|
AbortedFiles ( ) : ICollection |
||
AddDeleteDocID ( int docID ) : void | ||
AddDeleteQuery ( Lucene.Net.Search.Query query, int docID ) : void | ||
AddDeleteTerm ( Lucene.Net.Index.Term term, int docCount ) : void | ||
AddDocument ( Lucene.Net.Documents.Document doc, Lucene.Net.Analysis.Analyzer analyzer ) : bool |
Returns true if the caller (IndexWriter) should now flush.
|
|
AddOpenFile ( System name ) : void | ||
AllThreadsIdle ( ) : bool | ||
ApplyDeletes ( |
||
ApplyDeletes ( |
||
BalanceRAM ( ) : void | ||
BufferDeleteQueries ( Lucene.Net.Search.Query queries ) : bool | ||
BufferDeleteQuery ( Lucene.Net.Search.Query query ) : bool | ||
BufferDeleteTerm ( Lucene.Net.Index.Term term ) : bool | ||
BufferDeleteTerms ( Lucene.Net.Index.Term terms ) : bool | ||
BytesAllocated ( long numBytes ) : void | ||
BytesUsed ( long numBytes ) : void | ||
CheckDeleteTerm ( Lucene.Net.Index.Term term ) : bool | ||
ClearFlushPending ( ) : void | ||
CloseDocStore ( ) : System.String |
Closes the current open doc stores an returns the doc store segment name. This returns null if there are * no buffered documents.
|
|
ClosedFiles ( ) : IList |
||
CreateCompoundFile ( System segment ) : void |
Build compound file for the segment we just flushed
|
|
DeletesFull ( ) : bool | ||
DoAfterFlush ( ) : void |
Reset after a flush
|
|
DoApplyDeletes ( ) : bool | ||
DoBalanceRAM ( ) : bool | ||
DocumentsWriter ( ) : System | ||
DocumentsWriter ( Lucene.Net.Store.Directory directory, |
||
FinishDocument ( Lucene.Net.Index.DocumentsWriterThreadState perThread, DocWriter docWriter ) : void |
Does the synchronized work to finish/flush the inverted document.
|
|
Flush ( bool closeDocStore ) : int |
Flush all pending docs to a new segment
|
|
GetBufferedDeleteTerms ( ) : BufferedDeletes.Num>.IDictionary |
||
GetCharBlock ( ) : char[] | ||
GetFlushedDocCount ( ) : int | ||
GetFlushedFiles ( ) : ICollection |
||
GetIntBlock ( bool trackAllocations ) : int[] | ||
GetNumBufferedDeleteTerms ( ) : int | ||
GetRAMBufferSizeMB ( ) : double | ||
GetRAMUsed ( ) : long | ||
GetThreadState ( Lucene.Net.Documents.Document doc, Lucene.Net.Index.Term delTerm ) : Lucene.Net.Index.DocumentsWriterThreadState |
Returns a free (idle) ThreadState that may be used for indexing this one document. This call also pauses if a flush is pending. If delTerm is non-null then we buffer this deleted term after the thread state has been acquired.
|
|
HasDeletes ( ) : bool | ||
HasProx ( ) : bool |
Returns true if any of the fields in the current buffered docs have omitTermFreqAndPositions==false
|
|
InitBlock ( ) : void | ||
InitFlushState ( bool onlyDocStore ) : void | ||
InitSegmentName ( bool onlyDocStore ) : void | ||
Message ( System message ) : void | ||
NewPerDocBuffer ( ) : PerDocBuffer | ||
OpenFiles ( ) : IList |
||
PauseAllThreads ( ) : bool | ||
PushDeletes ( ) : void | ||
RecycleCharBlocks ( char blocks, int numBlocks ) : void | ||
RecycleIntBlocks ( int blocks, int start, int end ) : void | ||
RemapDeletes ( |
Called whenever a merge has completed and the merged segments had deletions
|
|
RemoveOpenFile ( System name ) : void | ||
ResumeAllThreads ( ) : void | ||
SetAborting ( ) : void | ||
SetFlushPending ( ) : bool |
Set flushPending if it is not already set and returns whether it was set. This is used by IndexWriter to trigger a single flush even when multiple threads are trying to do so.
|
|
SetFlushedDocCount ( int n ) : void | ||
SetInfoStream ( System infoStream ) : void |
If non-null, various details of indexing are printed here.
|
|
SetMaxFieldLength ( int maxFieldLength ) : void | ||
SetRAMBufferSizeMB ( double mb ) : void |
Set how much RAM we can use before flushing.
|
|
SetSimilarity ( Lucene.Net.Search.Similarity similarity ) : void | ||
TimeToFlushDeletes ( ) : bool | ||
ToMB ( long v ) : System.String | ||
UpdateDocument ( Lucene.Net.Documents.Document doc, Lucene.Net.Analysis.Analyzer analyzer, Lucene.Net.Index.Term delTerm ) : bool | ||
UpdateDocument ( Lucene.Net.Index.Term t, Lucene.Net.Documents.Document doc, Lucene.Net.Analysis.Analyzer analyzer ) : bool | ||
UpdateFlushedDocCount ( int n ) : void | ||
WaitForWaitQueue ( ) : void | ||
WaitReady ( Lucene.Net.Index.DocumentsWriterThreadState state ) : void |