From c2a326f20df16e830acf6320b5ec7bed142aeb37 Mon Sep 17 00:00:00 2001 From: Anindya Chatterjee Date: Thu, 7 Dec 2023 18:05:26 +0530 Subject: [PATCH] Update Filters.kt --- .../org/dizitart/kno2/filters/Filters.kt | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/potassium-nitrite/src/main/kotlin/org/dizitart/kno2/filters/Filters.kt b/potassium-nitrite/src/main/kotlin/org/dizitart/kno2/filters/Filters.kt index 6583a008c..010d6c38f 100644 --- a/potassium-nitrite/src/main/kotlin/org/dizitart/kno2/filters/Filters.kt +++ b/potassium-nitrite/src/main/kotlin/org/dizitart/kno2/filters/Filters.kt @@ -37,7 +37,7 @@ import kotlin.reflect.KProperty inline infix fun String.eq(value: T?): Filter = FluentFilter.where(this).eq(value) /** - * Creates an not equality filter which does not matches documents where the value + * Creates a not equality filter which does not match documents where the value * of a field equals the specified [value]. */ inline infix fun String.notEq(value: T?): Filter = @@ -131,28 +131,28 @@ infix fun String.regex(value: String?): Filter = FluentFilter.where(this).regex( * of a field is within the specified Geometry value. */ inline infix fun String.within(value: T?): Filter = - org.dizitart.no2.spatial.FluentFilter.where(this).within(value) + org.dizitart.no2.spatial.SpatialFluentFilter.where(this).within(value) /** - * Creates an spatial filter which matches documents where the spatial data + * Creates a spatial filter which matches documents where the spatial data * of a field intersects the specified Geometry value. */ inline infix fun String.intersects(value: T?): Filter = - org.dizitart.no2.spatial.FluentFilter.where(this).intersects(value) + org.dizitart.no2.spatial.SpatialFluentFilter.where(this).intersects(value) /** * Creates a spatial filter which matches documents where the spatial data * of a field is near the specified coordinate. */ inline fun String.near(value: T?, distance: Double): Filter = - org.dizitart.no2.spatial.FluentFilter.where(this).near(value, distance) + org.dizitart.no2.spatial.SpatialFluentFilter.where(this).near(value, distance) /** * Creates a spatial filter which matches documents where the spatial data * of a field is near the specified point. */ inline fun String.near(value: T?, distance: Double): Filter = - org.dizitart.no2.spatial.FluentFilter.where(this).near(value, distance) + org.dizitart.no2.spatial.SpatialFluentFilter.where(this).near(value, distance) /** * Creates an and filter which performs a logical AND operation on two filters and selects @@ -246,25 +246,25 @@ infix fun KProperty.regex(value: String?): Filter = FluentFilter.where( * of a field is within the specified Geometry value. */ inline infix fun KProperty.within(value: T?): Filter = - org.dizitart.no2.spatial.FluentFilter.where(this.name).within(value) + org.dizitart.no2.spatial.SpatialFluentFilter.where(this.name).within(value) /** - * Creates an spatial filter which matches documents where the spatial data + * Creates a spatial filter which matches documents where the spatial data * of a field intersects the specified Geometry value. */ inline infix fun KProperty.intersects(value: T?): Filter = - org.dizitart.no2.spatial.FluentFilter.where(this.name).intersects(value) + org.dizitart.no2.spatial.SpatialFluentFilter.where(this.name).intersects(value) /** * Creates a spatial filter which matches documents where the spatial data * of a field is near the specified coordinate. */ inline fun KProperty.near(value: Point, distance: Double): Filter = - org.dizitart.no2.spatial.FluentFilter.where(this.name).near(value, distance) + org.dizitart.no2.spatial.SpatialFluentFilter.where(this.name).near(value, distance) /** * Creates a spatial filter which matches documents where the spatial data * of a field is near the specified point. */ inline fun KProperty.near(value: Coordinate, distance: Double): Filter = - org.dizitart.no2.spatial.FluentFilter.where(this.name).near(value, distance) + org.dizitart.no2.spatial.SpatialFluentFilter.where(this.name).near(value, distance)