Class DocumentDictionary.DocumentInputIterator
Inheritance
System.Object
DocumentDictionary.DocumentInputIterator
Implements
IBytesRefIterator
Assembly: Lucene.Net.Suggest.dll
protected class DocumentInputIterator : object, IInputIterator, IBytesRefIterator
Constructors
|
Improve this Doc
View Source
Creates an iterator over term, weight and payload fields from the lucene
index. setting HasPayloads to false, implies an iterator
over only term and weight.
Declaration
public DocumentInputIterator(DocumentDictionary outerInstance, bool hasPayloads, bool hasContexts)
Parameters
Type |
Name |
Description |
DocumentDictionary |
outerInstance |
|
System.Boolean |
hasPayloads |
|
System.Boolean |
hasContexts |
|
Properties
|
Improve this Doc
View Source
Declaration
public virtual IComparer<BytesRef> Comparer { get; }
Property Value
Type |
Description |
IComparer<BytesRef> |
|
|
Improve this Doc
View Source
Contexts
Declaration
public virtual IEnumerable<BytesRef> Contexts { get; }
Property Value
Type |
Description |
IEnumerable<BytesRef> |
|
|
Improve this Doc
View Source
HasContexts
Declaration
public virtual bool HasContexts { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public virtual bool HasPayloads { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public virtual BytesRef Payload { get; }
Property Value
Type |
Description |
BytesRef |
|
|
Improve this Doc
View Source
Declaration
public virtual long Weight { get; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
|
Improve this Doc
View Source
Returns the value of the Weight property for the current document.
Retrieves the value for the Weight property if its stored (using doc
)
or if its indexed as (using docId
) for the document.
If no value is found, then the weight is 0.
Declaration
protected virtual long GetWeight(Document doc, int docId)
Parameters
Type |
Name |
Description |
Document |
doc |
|
System.Int32 |
docId |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Declaration
public virtual BytesRef Next()
Returns
Type |
Description |
BytesRef |
|
Implements
IBytesRefIterator