pub struct SpatialWithinOperator {
pub field: String,
pub center_x: f64,
pub center_y: f64,
pub distance: f64,
}Expand description
SpatialWithin_{f, center, distance}: return all documents whose
field value lies within distance (great-circle metres) of
(center_x, center_y). Brute-force
scans the document store using
uqa_storage::haversine_distance; spatial indexes plug in via
the engine layer.
Fields§
§field: String§center_x: f64§center_y: f64§distance: f64Implementations§
Trait Implementations§
Source§impl Operator for SpatialWithinOperator
impl Operator for SpatialWithinOperator
fn execute(&self, ctx: &ExecutionContext) -> OperatorResult
fn cost_estimate(&self, stats: &IndexStats) -> f64
Auto Trait Implementations§
impl Freeze for SpatialWithinOperator
impl RefUnwindSafe for SpatialWithinOperator
impl Send for SpatialWithinOperator
impl Sync for SpatialWithinOperator
impl Unpin for SpatialWithinOperator
impl UnsafeUnpin for SpatialWithinOperator
impl UnwindSafe for SpatialWithinOperator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more