Class DistanceValueSource
An implementation of the Lucene ValueSource model that returns the distance for a PointVectorStrategy.
This is a Lucene.NET INTERNAL API, use at your own risk
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Spatial.Vector
Assembly: Lucene.Net.Spatial.dll
Syntax
public class DistanceValueSource : ValueSource
Constructors
| Improve this Doc View SourceDistanceValueSource(PointVectorStrategy, IPoint, Double)
Constructor.
Declaration
public DistanceValueSource(PointVectorStrategy strategy, IPoint from, double multiplier)
Parameters
| Type | Name | Description |
|---|---|---|
| PointVectorStrategy | strategy | |
| Spatial4n.Core.Shapes.IPoint | from | |
| System.Double | multiplier |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object o)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | o |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceGetDescription()
Returns the ValueSource description.
Declaration
public override string GetDescription()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
| Improve this Doc View SourceGetValues(IDictionary, AtomicReaderContext)
Returns the FunctionValues used by the function query.
Declaration
public override FunctionValues GetValues(IDictionary context, AtomicReaderContext readerContext)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.IDictionary | context | |
| AtomicReaderContext | readerContext |
Returns
| Type | Description |
|---|---|
| FunctionValues |