Skip to main content

FileScanTask

Struct FileScanTask 

Source
pub struct FileScanTask {
Show 15 fields pub file_size_in_bytes: u64, pub start: u64, pub length: u64, pub record_count: Option<u64>, pub data_file_path: String, pub data_file_format: DataFileFormat, pub schema: SchemaRef, pub project_field_ids: Vec<i32>, pub predicate: Option<BoundPredicate>, pub deletes: Vec<FileScanTaskDeleteFile>, pub partition: Option<Struct>, pub partition_spec: Option<Arc<PartitionSpec>>, pub name_mapping: Option<Arc<NameMapping>>, pub case_sensitive: bool, pub key_metadata: Option<Box<[u8]>>,
}
Expand description

A task to scan part of file.

Fields§

§file_size_in_bytes: u64

The total size of the data file in bytes, from the manifest entry. Used to skip a stat/HEAD request when reading Parquet footers.

§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_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

§partition: Option<Struct>

Partition data from the manifest entry, used to identify which columns can use constant values from partition metadata vs. reading from the data file. Per the Iceberg spec, only identity-transformed partition fields should use constants.

§partition_spec: Option<Arc<PartitionSpec>>

The partition spec for this file, used to distinguish identity transforms (which use partition metadata constants) from non-identity transforms like bucket/truncate (which must read source columns from the data file).

§name_mapping: Option<Arc<NameMapping>>

Name mapping from table metadata (property: schema.name-mapping.default), used to resolve field IDs from column names when Parquet files lack field IDs or have field ID conflicts.

§case_sensitive: bool

Whether this scan task should treat column names as case-sensitive when binding predicates.

§key_metadata: Option<Box<[u8]>>

Key metadata for encrypted data files (Parquet Modular Encryption). When present, the reader uses this to build FileDecryptionProperties.

Note on the trust boundary: for the standard encryption scheme this carries StandardKeyMetadata, whose payload is the plaintext DEK. Because FileScanTask derives Serialize, that plaintext DEK is part of the serialized scan plan should these tasks ever be serialized and sent over the network.

Implementations§

Source§

impl FileScanTask

Source

pub fn builder() -> FileScanTaskBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>

Create a builder for building FileScanTask. On the builder, call .file_size_in_bytes(...), .start(...), .length(...), .record_count(...)(optional), .data_file_path(...), .data_file_format(...), .schema(...), .project_field_ids(...), .predicate(...)(optional), .deletes(...)(optional), .partition(...)(optional), .partition_spec(...)(optional), .name_mapping(...)(optional), .case_sensitive(...), .key_metadata(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of FileScanTask.

Source§

impl FileScanTask

Source

pub fn data_file_path(&self) -> &str

Returns the data file path of this file scan task.

Source

pub fn project_field_ids(&self) -> &[i32]

Returns the project field id of this file scan task.

Source

pub fn predicate(&self) -> Option<&BoundPredicate>

Returns the predicate of this file scan task.

Source

pub fn schema(&self) -> &Schema

Returns the schema of this file scan task as a reference

Source

pub fn schema_ref(&self) -> SchemaRef

Returns the schema of this file scan task as a SchemaRef

Trait Implementations§

Source§

impl Clone for FileScanTask

Source§

fn clone(&self) -> FileScanTask

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FileScanTask

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for FileScanTask

Source§

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

Source§

fn eq(&self, other: &FileScanTask) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for FileScanTask

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for FileScanTask

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<U> As for U

§

fn as_<T>(self) -> T
where T: CastFrom<U>,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
§

impl<T> AsAny for T
where T: Any,

§

fn as_any(&self) -> &(dyn Any + 'static)

§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

§

fn type_name(&self) -> &'static str

Gets the type name of self
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Downcast for T
where T: AsAny + ?Sized,

§

fn is<T>(&self) -> bool
where T: AsAny,

Returns true if the boxed type is the same as T. Read more
§

fn downcast_ref<T>(&self) -> Option<&T>
where T: AsAny,

Forward to the method defined on the type Any.
§

fn downcast_mut<T>(&mut self) -> Option<&mut T>
where T: AsAny,

Forward to the method defined on the type Any.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,