C# Class Lucene.Net.Index.ReadersAndUpdates

显示文件 Open project: paulirwin/lucene.net Class Usage Examples

Public Properties

Property Type Description
Info Lucene.Net.Index.SegmentCommitInfo

Public Methods

Method Description
DecRef ( ) : void
Delete ( int docID ) : bool
DropChanges ( ) : void
DropMergingUpdates ( ) : void

Drops all merging updates. Called from IndexWriter after this segment finished merging (whether successfully or not).

DropReaders ( ) : void
GetMergeReader ( IOContext context ) : Lucene.Net.Index.SegmentReader
GetReadOnlyClone ( IOContext context ) : Lucene.Net.Index.SegmentReader

Returns a ref to a clone. NOTE: you should decRef() the reader when you're dont (ie do not call close()).

GetReader ( IOContext context ) : Lucene.Net.Index.SegmentReader

Returns a SegmentReader.

IncRef ( ) : void
InitWritableLiveDocs ( ) : void
ReadersAndUpdates ( IndexWriter writer, Lucene.Net.Index.SegmentCommitInfo info ) : System
RefCount ( ) : int
Release ( Lucene.Net.Index.SegmentReader sr ) : void
ToString ( ) : string
VerifyDocCounts ( ) : bool
WriteFieldUpdates ( Directory dir, Lucene.Net.Index.DocValuesFieldUpdates dvUpdates ) : void
WriteLiveDocs ( Directory dir ) : bool

Private Methods

Method Description
GetBytesRefEnumerable ( Lucene.Net.Index.SegmentReader reader, string field, Lucene.Net.Index.BinaryDocValuesFieldUpdates fieldUpdates ) : IEnumerable
GetLongEnumerable ( Lucene.Net.Index.SegmentReader reader, string field, Lucene.Net.Index.NumericDocValuesFieldUpdates fieldUpdates ) : IEnumerable
GetReaderForMerge ( IOContext context ) : Lucene.Net.Index.SegmentReader

Returns a reader for merge. this method applies field updates if there are any and marks that this segment is currently merging.

Method Details

DecRef() public method

public DecRef ( ) : void
return void

Delete() public method

public Delete ( int docID ) : bool
docID int
return bool

DropChanges() public method

public DropChanges ( ) : void
return void

DropMergingUpdates() public method

Drops all merging updates. Called from IndexWriter after this segment finished merging (whether successfully or not).
public DropMergingUpdates ( ) : void
return void

DropReaders() public method

public DropReaders ( ) : void
return void

GetMergeReader() public method

public GetMergeReader ( IOContext context ) : Lucene.Net.Index.SegmentReader
context IOContext
return Lucene.Net.Index.SegmentReader

GetReadOnlyClone() public method

Returns a ref to a clone. NOTE: you should decRef() the reader when you're dont (ie do not call close()).
public GetReadOnlyClone ( IOContext context ) : Lucene.Net.Index.SegmentReader
context IOContext
return Lucene.Net.Index.SegmentReader

GetReader() public method

Returns a SegmentReader.
public GetReader ( IOContext context ) : Lucene.Net.Index.SegmentReader
context IOContext
return Lucene.Net.Index.SegmentReader

IncRef() public method

public IncRef ( ) : void
return void

InitWritableLiveDocs() public method

public InitWritableLiveDocs ( ) : void
return void

ReadersAndUpdates() public method

public ReadersAndUpdates ( IndexWriter writer, Lucene.Net.Index.SegmentCommitInfo info ) : System
writer IndexWriter
info Lucene.Net.Index.SegmentCommitInfo
return System

RefCount() public method

public RefCount ( ) : int
return int

Release() public method

public Release ( Lucene.Net.Index.SegmentReader sr ) : void
sr Lucene.Net.Index.SegmentReader
return void

ToString() public method

public ToString ( ) : string
return string

VerifyDocCounts() public method

public VerifyDocCounts ( ) : bool
return bool

WriteFieldUpdates() public method

public WriteFieldUpdates ( Directory dir, Lucene.Net.Index.DocValuesFieldUpdates dvUpdates ) : void
dir Directory
dvUpdates Lucene.Net.Index.DocValuesFieldUpdates
return void

WriteLiveDocs() public method

public WriteLiveDocs ( Directory dir ) : bool
dir Directory
return bool

Property Details

Info public_oe property

public SegmentCommitInfo,Lucene.Net.Index Info
return Lucene.Net.Index.SegmentCommitInfo