pub struct TestReadOptions {
pub sedona_type: SedonaType,
pub chunk_size: usize,
pub output_size: Option<usize>,
}Expand description
Options for test file readers
Fields§
§sedona_type: SedonaTypeType to use for geometry when reading test files
chunk_size: usizeChunk size to output when reading test files
output_size: Option<usize>Approximate number of rows
This number is approximate and the actual number will be obtained by either truncating the input or cycling through batches until at least this number is reached. If omitted, the entire test file will be read.
Implementations§
Source§impl TestReadOptions
impl TestReadOptions
Sourcepub fn new(sedona_type: SedonaType) -> Self
pub fn new(sedona_type: SedonaType) -> Self
Create new options with defaults
Sourcepub fn with_output_size(self, output_size: usize) -> Self
pub fn with_output_size(self, output_size: usize) -> Self
Apply a target output size to these options
Trait Implementations§
Source§impl Clone for TestReadOptions
impl Clone for TestReadOptions
Source§fn clone(&self) -> TestReadOptions
fn clone(&self) -> TestReadOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TestReadOptions
impl !RefUnwindSafe for TestReadOptions
impl Send for TestReadOptions
impl Sync for TestReadOptions
impl Unpin for TestReadOptions
impl UnsafeUnpin for TestReadOptions
impl !UnwindSafe for TestReadOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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