Class Lucene40StoredFieldsReader
Class responsible for access to stored document fields.
It uses <segment>.fdt and <segment>.fdx; files.
This is a Lucene.NET INTERNAL API, use at your own risk
Implements
IDisposable
Inherited Members
Namespace: Lucene.Net.Codecs.Lucene40
Assembly: Lucene.Net.dll
Syntax
public sealed class Lucene40StoredFieldsReader : StoredFieldsReader, IDisposable
Constructors
| Improve this Doc View SourceLucene40StoredFieldsReader(Directory, SegmentInfo, FieldInfos, IOContext)
Sole constructor.
Declaration
public Lucene40StoredFieldsReader(Directory d, SegmentInfo si, FieldInfos fn, IOContext context)
Parameters
Type | Name | Description |
---|---|---|
Directory | d | |
Segment |
si | |
Field |
fn | |
IOContext | context |
Properties
| Improve this Doc View SourceCount
Returns number of documents.
NOTE: This was size() in Lucene.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceCheckIntegrity()
Declaration
public override void CheckIntegrity()
Overrides
| Improve this Doc View SourceClone()
Returns a cloned FieldsReader that shares open
Index
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceDispose(Boolean)
Closes the underlying Index
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing |
Overrides
| Improve this Doc View SourceRamBytesUsed()
Declaration
public override long RamBytesUsed()
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceRawDocs(Int32[], Int32, Int32)
Returns the length in bytes of each raw document in a
contiguous range of length numDocs
starting with
startDocID
. Returns the IndexstartDocID
.
Declaration
public IndexInput RawDocs(int[] lengths, int startDocID, int numDocs)
Parameters
Type | Name | Description |
---|---|---|
System. |
lengths | |
System. |
startDocID | |
System. |
numDocs |
Returns
Type | Description |
---|---|
Index |
VisitDocument(Int32, StoredFieldVisitor)
Declaration
public override void VisitDocument(int n, StoredFieldVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
System. |
n | |
Stored |
visitor |
Overrides
Implements
IDisposable