pub struct FileScanTaskDeleteFile {
pub file_path: String,
pub file_size_in_bytes: u64,
pub file_type: DataContentType,
pub file_format: DataFileFormat,
pub partition_spec_id: i32,
pub equality_ids: Option<Vec<i32>>,
pub referenced_data_file: Option<String>,
pub content_offset: Option<i64>,
pub content_size_in_bytes: Option<i64>,
pub record_count: Option<u64>,
pub key_metadata: Option<Box<[u8]>>,
}Expand description
A task to scan part of file.
Fields§
§file_path: StringThe delete file path
file_size_in_bytes: u64The total size of the delete file in bytes, from the manifest entry.
file_type: DataContentTypedelete file type
file_format: DataFileFormatThe delete file’s format, from the manifest entry. A PositionDeletes entry written as
Puffin is a V3 deletion vector; one written as Parquet is a position delete file.
partition_spec_id: i32partition id
equality_ids: Option<Vec<i32>>equality ids for equality deletes (null for anything other than equality-deletes)
referenced_data_file: Option<String>For a deletion vector, the location of the data file whose rows it deletes. Required for deletion vectors, and may also be set on a position delete file scoped to one data file.
content_offset: Option<i64>For a deletion vector, the offset of the blob within its Puffin file. Set only for deletion vectors, where it locates the blob for direct access.
content_size_in_bytes: Option<i64>For a deletion vector, the length in bytes of the blob within its Puffin file.
Required together with content_offset; both are absent for non-DV delete files.
record_count: Option<u64>The number of records in the delete file, from the manifest entry; for a deletion vector,
the cardinality of its bitmap. None only for a task not built from a manifest entry.
key_metadata: Option<Box<[u8]>>Key metadata for an encrypted delete file. When present, the reader uses this to
decrypt the file: for a Parquet equality or position delete file, this builds
FileDecryptionProperties (Parquet Modular Encryption); for a deletion vector, whose
Puffin file has no native encryption, this wraps the range read in an
EncryptedInputFile (AGS1 stream encryption).
Same plaintext-DEK trust boundary as FileScanTask::key_metadata:
this is serialized into the scan plan and crosses the planner -> worker
channel in the clear for the standard encryption scheme.
Implementations§
Source§impl FileScanTaskDeleteFile
impl FileScanTaskDeleteFile
Sourcepub fn builder() -> FileScanTaskDeleteFileBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> FileScanTaskDeleteFileBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building FileScanTaskDeleteFile.
On the builder, call .file_path(...), .file_size_in_bytes(...), .file_type(...), .file_format(...), .partition_spec_id(...), .equality_ids(...)(optional), .referenced_data_file(...)(optional), .content_offset(...)(optional), .content_size_in_bytes(...)(optional), .record_count(...)(optional), .key_metadata(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of FileScanTaskDeleteFile.
Trait Implementations§
Source§impl Clone for FileScanTaskDeleteFile
impl Clone for FileScanTaskDeleteFile
Source§fn clone(&self) -> FileScanTaskDeleteFile
fn clone(&self) -> FileScanTaskDeleteFile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FileScanTaskDeleteFile
impl Debug for FileScanTaskDeleteFile
Source§impl<'de> Deserialize<'de> for FileScanTaskDeleteFile
impl<'de> Deserialize<'de> for FileScanTaskDeleteFile
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>,
Source§impl PartialEq for FileScanTaskDeleteFile
impl PartialEq for FileScanTaskDeleteFile
Source§impl Serialize for FileScanTaskDeleteFile
impl Serialize for FileScanTaskDeleteFile
impl StructuralPartialEq for FileScanTaskDeleteFile
Auto Trait Implementations§
impl Freeze for FileScanTaskDeleteFile
impl RefUnwindSafe for FileScanTaskDeleteFile
impl Send for FileScanTaskDeleteFile
impl Sync for FileScanTaskDeleteFile
impl Unpin for FileScanTaskDeleteFile
impl UnsafeUnpin for FileScanTaskDeleteFile
impl UnwindSafe for FileScanTaskDeleteFile
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
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 moreSource§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§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> ⓘ
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