pub enum TableGeoStatistics {
ByPosition(Vec<GeoStatistics>),
ByName(HashMap<String, GeoStatistics>),
}Expand description
Table GeoStatistics
Enables providing a collection of GeoStatistics to SpatialFilter::evaluate such that attempts to access out-of-bounds values results in a readable error.
Variants§
ByPosition(Vec<GeoStatistics>)
Provide statistics for every Column in the table. These must be GeoStatistics::unspecified for non-spatial columns.
These are resolved using Column::index.
ByName(HashMap<String, GeoStatistics>)
Provide statistics for specific named columns. Columns not included are treated as GeoStatistics::unspecified.
These are resolved using Column::name. This may be used for logical expressions (where columns are resolved by name) or as a workaround for physical expressions where the index is relative to a projected schema https://github.com/apache/sedona-db/issues/389.
Implementations§
Source§impl TableGeoStatistics
impl TableGeoStatistics
Sourcepub fn try_from_stats_and_schema(
column_stats: &[GeoStatistics],
schema: &Schema,
) -> Result<Self>
pub fn try_from_stats_and_schema( column_stats: &[GeoStatistics], schema: &Schema, ) -> Result<Self>
Construct TableGeoStatistics from a slice of all column statistics and a schema
Trait Implementations§
Source§impl From<GeoStatistics> for TableGeoStatistics
impl From<GeoStatistics> for TableGeoStatistics
Source§fn from(value: GeoStatistics) -> Self
fn from(value: GeoStatistics) -> Self
Auto Trait Implementations§
impl Freeze for TableGeoStatistics
impl RefUnwindSafe for TableGeoStatistics
impl Send for TableGeoStatistics
impl Sync for TableGeoStatistics
impl Unpin for TableGeoStatistics
impl UnsafeUnpin for TableGeoStatistics
impl UnwindSafe for TableGeoStatistics
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more