C# Класс Lucene.Net.Documents.LazyDocument

Defers actually loading a field's value until you ask for it. You must not use the returned Field instances after the provided reader has been closed.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
FetchRealValues void

Открытые методы

Метод Описание
GetField ( Lucene.Net.Index.FieldInfo fieldInfo ) : IndexableField

Creates an IndexableField whose value will be lazy loaded if and when it is used.

NOTE: This method must be called once for each value of the field name specified in sequence that the values exist. This method may not be used to generate multiple, lazy, IndexableField instances refering to the same underlying IndexableField instance.

The lazy loading of field values from all instances of IndexableField objects returned by this method are all backed by a single Document per LazyDocument instance.

LazyDocument ( IndexReader reader, int docID ) : Lucene.Net.Analysis

Приватные методы

Метод Описание
FetchRealValues ( string name, int fieldNum ) : void

Описание методов

GetField() публичный Метод

Creates an IndexableField whose value will be lazy loaded if and when it is used.

NOTE: This method must be called once for each value of the field name specified in sequence that the values exist. This method may not be used to generate multiple, lazy, IndexableField instances refering to the same underlying IndexableField instance.

The lazy loading of field values from all instances of IndexableField objects returned by this method are all backed by a single Document per LazyDocument instance.

public GetField ( Lucene.Net.Index.FieldInfo fieldInfo ) : IndexableField
fieldInfo Lucene.Net.Index.FieldInfo
Результат IndexableField

LazyDocument() публичный Метод

public LazyDocument ( IndexReader reader, int docID ) : Lucene.Net.Analysis
reader Lucene.Net.Index.IndexReader
docID int
Результат Lucene.Net.Analysis