Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | List of all members
Lucene.Net.Spatial.Util.CachingDoubleValueSource.CachingDoubleDocValue Class Reference

Inherits Lucene.Net.Search.Function.DocValues.

Public Member Functions

 CachingDoubleDocValue (int docBase, DocValues vals, Dictionary< int, double > cache)
 
override double DoubleVal (int doc)
 Return doc value as a double. Optional: DocValues implementation can (but don't have to) override this method.
 
override float FloatVal (int doc)
 Return doc value as a float. Mandatory: every DocValues implementation must implement at least this method.
 
override string ToString (int doc)
 Return a string representation of a doc value, as reuired for Explanations.
 
- Public Member Functions inherited from Lucene.Net.Search.Function.DocValues
virtual int IntVal (int doc)
 Return doc value as an int. Optional: DocValues implementation can (but don't have to) override this method.
 
virtual long LongVal (int doc)
 Return doc value as a long. Optional: DocValues implementation can (but don't have to) override this method.
 
virtual System.String StrVal (int doc)
 Return doc value as a string. Optional: DocValues implementation can (but don't have to) override this method.
 
virtual Explanation Explain (int doc)
 Explain the scoring value for the input doc.
 
virtual float GetMinValue ()
 Returns the minimum of all values or Float.NaN if this DocValues instance does not contain any value. This operation is optional
 
virtual float GetMaxValue ()
 Returns the maximum of all values or Float.NaN if this DocValues instance does not contain any value. This operation is optional
 
virtual float GetAverageValue ()
 Returns the average of all values or Float.NaN if this DocValues instance does not contain any value. * This operation is optional
 

Detailed Description

Definition at line 35 of file CachingDoubleValueSource.cs.

Constructor & Destructor Documentation

Lucene.Net.Spatial.Util.CachingDoubleValueSource.CachingDoubleDocValue.CachingDoubleDocValue ( int  docBase,
DocValues  vals,
Dictionary< int, double >  cache 
)

Definition at line 41 of file CachingDoubleValueSource.cs.

Member Function Documentation

override double Lucene.Net.Spatial.Util.CachingDoubleValueSource.CachingDoubleDocValue.DoubleVal ( int  doc)
virtual

Return doc value as a double. Optional: DocValues implementation can (but don't have to) override this method.

Parameters
docdocument whose double value is requested.

Reimplemented from Lucene.Net.Search.Function.DocValues.

Definition at line 48 of file CachingDoubleValueSource.cs.

override float Lucene.Net.Spatial.Util.CachingDoubleValueSource.CachingDoubleDocValue.FloatVal ( int  doc)
virtual

Return doc value as a float. Mandatory: every DocValues implementation must implement at least this method.

Parameters
docdocument whose float value is requested.

Implements Lucene.Net.Search.Function.DocValues.

Definition at line 60 of file CachingDoubleValueSource.cs.

override string Lucene.Net.Spatial.Util.CachingDoubleValueSource.CachingDoubleDocValue.ToString ( int  doc)
virtual

Return a string representation of a doc value, as reuired for Explanations.

Implements Lucene.Net.Search.Function.DocValues.

Definition at line 65 of file CachingDoubleValueSource.cs.


The documentation for this class was generated from the following file: