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.ShapeFieldCacheDistanceValueSource.CachedDistanceDocValues Class Reference

Inherits Lucene.Net.Search.Function.DocValues.

Public Member Functions

 CachedDistanceDocValues (IndexReader reader, ShapeFieldCacheDistanceValueSource enclosingInstance)
 
override float FloatVal (int doc)
 Return doc value as a float. Mandatory: every DocValues implementation must implement at least this method.
 
override double DoubleVal (int doc)
 Return doc value as a double. Optional: DocValues implementation can (but don't have to) override 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 43 of file ShapeFieldCacheDistanceValueSource.cs.

Constructor & Destructor Documentation

Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource.CachedDistanceDocValues.CachedDistanceDocValues ( IndexReader  reader,
ShapeFieldCacheDistanceValueSource  enclosingInstance 
)

Definition at line 51 of file ShapeFieldCacheDistanceValueSource.cs.

Member Function Documentation

override double Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource.CachedDistanceDocValues.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 66 of file ShapeFieldCacheDistanceValueSource.cs.

override float Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource.CachedDistanceDocValues.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 61 of file ShapeFieldCacheDistanceValueSource.cs.

override string Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource.CachedDistanceDocValues.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 81 of file ShapeFieldCacheDistanceValueSource.cs.


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