C# Class Lucene.Net.Index.DocumentsWriter

Datei anzeigen Open project: synhershko/lucene.net Class Usage Examples

Private Properties

Property Type Description
Abort void
AbortedFiles ICollection
AddDeleteDocID void
AddDeleteQuery void
AddDeleteTerm void
AddDocument bool
AddOpenFile void
AllThreadsIdle bool
ApplyDeletes bool
ApplyDeletes bool
BalanceRAM void
BufferDeleteQueries bool
BufferDeleteQuery bool
BufferDeleteTerm bool
BufferDeleteTerms bool
BytesAllocated void
BytesUsed void
CheckDeleteTerm bool
ClearFlushPending void
CloseDocStore System.String
ClosedFiles IList
CreateCompoundFile void
DeletesFull bool
DoAfterFlush void
DoApplyDeletes bool
DoBalanceRAM bool
DocumentsWriter System
DocumentsWriter System
FinishDocument void
Flush int
GetBufferedDeleteTerms BufferedDeletes.Num>.IDictionary
GetCharBlock char[]
GetFlushedDocCount int
GetFlushedFiles ICollection
GetIntBlock int[]
GetNumBufferedDeleteTerms int
GetRAMBufferSizeMB double
GetRAMUsed long
GetThreadState Lucene.Net.Index.DocumentsWriterThreadState
HasDeletes bool
HasProx bool
InitBlock void
InitFlushState void
InitSegmentName void
Message void
NewPerDocBuffer PerDocBuffer
OpenFiles IList
PauseAllThreads bool
PushDeletes void
RecycleCharBlocks void
RecycleIntBlocks void
RemapDeletes void
RemoveOpenFile void
ResumeAllThreads void
SetAborting void
SetFlushPending bool
SetFlushedDocCount void
SetInfoStream void
SetMaxFieldLength void
SetRAMBufferSizeMB void
SetSimilarity void
TimeToFlushDeletes bool
ToMB System.String
UpdateDocument bool
UpdateDocument bool
UpdateFlushedDocCount void
WaitForWaitQueue void
WaitReady void

Public Methods

Method Description
Dispose ( ) : void

Private Methods

Method Description
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 ( IndexReader reader, int docIDStart ) : bool
ApplyDeletes ( SegmentInfos infos ) : bool
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, IndexWriter writer, IndexingChain indexingChain ) : System
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 ( SegmentInfos infos, int docMaps, int delCounts, MergePolicy merge, int mergeDocCount ) : void

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

Method Details

Dispose() public method

public Dispose ( ) : void
return void