pub struct FileScanTask {
pub start: u64,
pub length: u64,
pub record_count: Option<u64>,
pub data_file_path: String,
pub data_file_content: DataContentType,
pub data_file_format: DataFileFormat,
pub schema: SchemaRef,
pub project_field_ids: Vec<i32>,
pub predicate: Option<BoundPredicate>,
pub deletes: Vec<FileScanTaskDeleteFile>,
}
Expand description
A task to scan part of file.
Fields§
§start: u64
The start offset of the file to scan.
length: u64
The length of the file to scan.
record_count: Option<u64>
The number of records in the file to scan.
This is an optional field, and only available if we are reading the entire data file.
data_file_path: String
The data file path corresponding to the task.
data_file_content: DataContentType
The content type of the file to scan.
data_file_format: DataFileFormat
The format of the file to scan.
schema: SchemaRef
The schema of the file to scan.
project_field_ids: Vec<i32>
The field ids to project.
predicate: Option<BoundPredicate>
The predicate to filter.
deletes: Vec<FileScanTaskDeleteFile>
The list of delete files that may need to be applied to this data file
Implementations§
Source§impl FileScanTask
impl FileScanTask
Sourcepub fn data_file_path(&self) -> &str
pub fn data_file_path(&self) -> &str
Returns the data file path of this file scan task.
Sourcepub fn project_field_ids(&self) -> &[i32]
pub fn project_field_ids(&self) -> &[i32]
Returns the project field id of this file scan task.
Sourcepub fn predicate(&self) -> Option<&BoundPredicate>
pub fn predicate(&self) -> Option<&BoundPredicate>
Returns the predicate of this file scan task.
Sourcepub fn schema_ref(&self) -> SchemaRef
pub fn schema_ref(&self) -> SchemaRef
Returns the schema of this file scan task as a SchemaRef
Trait Implementations§
Source§impl Clone for FileScanTask
impl Clone for FileScanTask
Source§fn clone(&self) -> FileScanTask
fn clone(&self) -> FileScanTask
Returns a copy 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 moreSource§impl Debug for FileScanTask
impl Debug for FileScanTask
Source§impl<'de> Deserialize<'de> for FileScanTask
impl<'de> Deserialize<'de> for FileScanTask
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FileScanTask
impl PartialEq for FileScanTask
Source§impl Serialize for FileScanTask
impl Serialize for FileScanTask
impl StructuralPartialEq for FileScanTask
Auto Trait Implementations§
impl Freeze for FileScanTask
impl RefUnwindSafe for FileScanTask
impl Send for FileScanTask
impl Sync for FileScanTask
impl Unpin for FileScanTask
impl UnwindSafe for FileScanTask
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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