Class ShapePredicateValueSource
A boolean ValueSource that compares a shape from a provided ValueSource with a given Spatial4n.Core.Shapes.IShape and sees if it matches a given SpatialOperation (the predicate).
This is a Lucene.NET EXPERIMENTAL 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.Util
Assembly: Lucene.Net.Spatial.dll
Syntax
public class ShapePredicateValueSource : ValueSource
Constructors
| Improve this Doc View SourceShapePredicateValueSource(ValueSource, SpatialOperation, IShape)
Declaration
public ShapePredicateValueSource(ValueSource shapeValuesource, SpatialOperation op, IShape queryShape)
Parameters
Type | Name | Description |
---|---|---|
ValueSource | shapeValuesource | Must yield Spatial4n.Core.Shapes.IShape instances from it's ObjectVal(doc). If null then the result is false. This is the left-hand (indexed) side. |
SpatialOperation | op | the predicate |
Spatial4n.Core.Shapes.IShape | queryShape | The shape on the right-hand (query) side. |
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 | |
IndexSearcher | searcher |
Overrides
| 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()
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)
Declaration
public override FunctionValues GetValues(IDictionary context, AtomicReaderContext readerContext)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | context | |
AtomicReaderContext | readerContext |
Returns
Type | Description |
---|---|
FunctionValues |