SpatialFilter class abstract
The abstract base class for all spatial filters in Nitrite.
A spatial filter is used to query Nitrite database for
documents that have a specific spatial relationship with a given geometry.
It extends IndexOnlyFilter
because it can only be applied on an index.
Constructors
- SpatialFilter(String field, Geometry value)
Properties
- collectionName ↔ String?
-
Gets the name of the collection on which this filter is applied.
getter/setter pairinherited
- comparable → Comparable
-
no setterinherited
- field ↔ String
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- nitriteConfig ↔ NitriteConfig?
-
Gets the
NitriteConfig
instance.getter/setter pairinherited - objectFilter ↔ bool
-
Indicates if this filter is an object filter.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → Geometry
-
Gets the value of the filter.
no setter
Methods
-
and(
Filter filter) → Filter -
Creates an and filter which performs a logical AND operation on
two filters and selects the documents that satisfy both filters.
inherited
-
apply(
Document doc) → bool - Applies the filter to the given element.
-
applyOnIndex(
IndexMap indexMap) → Stream -
Apply this filter on a nitrite index.
inherited
-
canBeGrouped(
IndexOnlyFilter other) → bool -
Checks if
other
filter can be grouped together with this filter. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
not(
) → Filter -
Creates a not filter which performs a logical NOT operation on a filter
and selects the documents that do not satisfy the criteria.
inherited
-
or(
Filter filter) → Filter -
Creates an or filter which performs a logical OR operation on
two filters and selects the documents that satisfy at least one
of the filter.
inherited
-
supportedIndexType(
) → String - Gets the supported index type for this filter.
-
toString(
) → String -
A string representation of this object.
inherited
-
validateSearchTerm(
NitriteMapper nitriteMapper, String field, dynamic value) → void -
Validates the search term for a given field and value.
inherited
-
yieldValues(
dynamic value) → Stream -
Yield values after index scanning.
inherited
Operators
-
operator &(
Filter other) → Filter -
Creates an and filter which performs a logical AND operation on
two filters and selects the documents that satisfy both filters.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator |(
Filter other) → Filter -
Creates an or filter which performs a logical OR operation on
two filters and selects the documents that satisfy at least one
of the filter.
inherited
-
operator ~(
) → Filter -
Creates a not filter which performs a logical NOT operation on a filter
and selects the documents that do not satisfy the criteria.
inherited