Class DisjointSpatialFilter
A Spatial Filter implementing IsDisjointTo in terms of a SpatialStrategy's support for Intersects. A document is considered disjoint if it has spatial data that does not intersect with the query shape. Another way of looking at this is that it's a way to invert a query shape.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Spatial
Assembly: Lucene.Net.Spatial.dll
Syntax
public class DisjointSpatialFilter : Filter
Constructors
DisjointSpatialFilter(SpatialStrategy, SpatialArgs, string?)
A Spatial Filter implementing IsDisjointTo in terms of a SpatialStrategy's support for Intersects. A document is considered disjoint if it has spatial data that does not intersect with the query shape. Another way of looking at this is that it's a way to invert a query shape.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public DisjointSpatialFilter(SpatialStrategy strategy, SpatialArgs args, string? field)
Parameters
Type | Name | Description |
---|---|---|
SpatialStrategy | strategy | Needed to compute intersects |
SpatialArgs | args | Used in spatial intersection |
string | field | This field is used to determine which docs have spatial data via
GetDocsWithField(AtomicReader, string).
Passing |
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? o)
Parameters
Type | Name | Description |
---|---|---|
object | o |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetDocIdSet(AtomicReaderContext, IBits?)
A Spatial Filter implementing IsDisjointTo in terms of a SpatialStrategy's support for Intersects. A document is considered disjoint if it has spatial data that does not intersect with the query shape. Another way of looking at this is that it's a way to invert a query shape.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public override DocIdSet? GetDocIdSet(AtomicReaderContext context, IBits? acceptDocs)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | |
IBits | acceptDocs |
Returns
Type | Description |
---|---|
DocIdSet |
Overrides
Exceptions
Type | Condition |
---|---|
IOException |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |