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
Classes | Public Member Functions | List of all members
Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource Class Reference

An implementation of the Lucene ValueSource model to support spatial relevance ranking. More...

Inherits Lucene.Net.Search.Function.ValueSource.

Classes

class  CachedDistanceDocValues
 

Public Member Functions

 ShapeFieldCacheDistanceValueSource (SpatialContext ctx, ShapeFieldCacheProvider< Point > provider, Point from)
 
override DocValues GetValues (IndexReader reader)
 Return the DocValues used by the function query.
 
override string Description ()
 description of field, used in explain()
 
override bool Equals (object o)
 
override int GetHashCode ()
 Needed for possible caching of query results - used by ValueSourceQuery.GetHashCode().
 
- Public Member Functions inherited from Lucene.Net.Search.Function.ValueSource
override System.String ToString ()
 
abstract override bool Equals (System.Object o)
 Needed for possible caching of query results - used by ValueSourceQuery.Equals(Object).
 

Detailed Description

An implementation of the Lucene ValueSource model to support spatial relevance ranking.

Definition at line 30 of file ShapeFieldCacheDistanceValueSource.cs.

Constructor & Destructor Documentation

Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource.ShapeFieldCacheDistanceValueSource ( SpatialContext  ctx,
ShapeFieldCacheProvider< Point >  provider,
Point  from 
)

Definition at line 36 of file ShapeFieldCacheDistanceValueSource.cs.

Member Function Documentation

override string Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource.Description ( )
virtual

description of field, used in explain()

Implements Lucene.Net.Search.Function.ValueSource.

Definition at line 92 of file ShapeFieldCacheDistanceValueSource.cs.

override bool Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource.Equals ( object  o)

Definition at line 97 of file ShapeFieldCacheDistanceValueSource.cs.

override int Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource.GetHashCode ( )
virtual

Needed for possible caching of query results - used by ValueSourceQuery.GetHashCode().

See Also
Object.GetHashCode()

Implements Lucene.Net.Search.Function.ValueSource.

Definition at line 111 of file ShapeFieldCacheDistanceValueSource.cs.

override DocValues Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource.GetValues ( IndexReader  reader)
virtual

Return the DocValues used by the function query.

Parameters
readerthe IndexReader used to read these values. If any caching is involved, that caching would also be IndexReader based.

<throws> IOException for any error. </throws>

Implements Lucene.Net.Search.Function.ValueSource.

Definition at line 87 of file ShapeFieldCacheDistanceValueSource.cs.


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