Class DistanceToShapeValueSource
The distance from a provided Point to a Point retrieved from a ValueSource via Lucene.Net.Queries.Function.FunctionValues.ObjectVal(System.Int32). The distance is calculated via a Spatial4n.Core.Distance.IDistanceCalculator.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
Lucene.Net.Queries.Function.ValueSource
DistanceToShapeValueSource
Inherited Members
Lucene.Net.Queries.Function.ValueSource.ToString()
Lucene.Net.Queries.Function.ValueSource.NewContext(Lucene.Net.Search.IndexSearcher)
Lucene.Net.Queries.Function.ValueSource.GetSortField(System.Boolean)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Spatial.Util
Assembly: Lucene.Net.Spatial.dll
Syntax
public class DistanceToShapeValueSource : ValueSource
Constructors
| Improve this Doc View SourceDistanceToShapeValueSource(ValueSource, IPoint, Double, SpatialContext)
Declaration
public DistanceToShapeValueSource(ValueSource shapeValueSource, IPoint queryPoint, double multiplier, SpatialContext ctx)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Queries.Function.ValueSource | shapeValueSource | |
Spatial4n.Core.Shapes.IPoint | queryPoint | |
System.Double | multiplier | |
Spatial4n.Core.Context.SpatialContext | ctx |
Methods
| Improve this Doc View SourceCreateWeight(IDictionary, IndexSearcher)
Declaration
public override void CreateWeight(IDictionary context, IndexSearcher searcher)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | context | |
Lucene.Net.Search.IndexSearcher | searcher |
Overrides
Lucene.Net.Queries.Function.ValueSource.CreateWeight(System.Collections.IDictionary, Lucene.Net.Search.IndexSearcher)
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Lucene.Net.Queries.Function.ValueSource.Equals(System.Object)
|
Improve this Doc
View Source
GetDescription()
Declaration
public override string GetDescription()
Returns
Type | Description |
---|---|
System.String |
Overrides
Lucene.Net.Queries.Function.ValueSource.GetDescription()
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Lucene.Net.Queries.Function.ValueSource.GetHashCode()
|
Improve this Doc
View Source
GetValues(IDictionary, AtomicReaderContext)
Declaration
public override FunctionValues GetValues(IDictionary context, AtomicReaderContext readerContext)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | context | |
Lucene.Net.Index.AtomicReaderContext | readerContext |
Returns
Type | Description |
---|---|
Lucene.Net.Queries.Function.FunctionValues |
Overrides
Lucene.Net.Queries.Function.ValueSource.GetValues(System.Collections.IDictionary, Lucene.Net.Index.AtomicReaderContext)