pub struct CdfLoadBuilder { /* private fields */ }
Expand description
Builder for create a read of change data feeds for delta tables
Implementations§
Source§impl CdfLoadBuilder
impl CdfLoadBuilder
Sourcepub fn new(log_store: LogStoreRef, snapshot: DeltaTableState) -> Self
pub fn new(log_store: LogStoreRef, snapshot: DeltaTableState) -> Self
Create a new [LoadBuilder
]
Sourcepub fn with_starting_version(self, starting_version: i64) -> Self
pub fn with_starting_version(self, starting_version: i64) -> Self
Version to start at (version 0 if not provided)
Sourcepub fn with_ending_version(self, ending_version: i64) -> Self
pub fn with_ending_version(self, ending_version: i64) -> Self
Version (inclusive) to end at
Sourcepub fn with_session_ctx(self, ctx: SessionContext) -> Self
pub fn with_session_ctx(self, ctx: SessionContext) -> Self
Provide a datafusion session context
Sourcepub fn with_ending_timestamp(self, timestamp: DateTime<Utc>) -> Self
pub fn with_ending_timestamp(self, timestamp: DateTime<Utc>) -> Self
Timestamp (inclusive) to end at
Sourcepub fn with_starting_timestamp(self, timestamp: DateTime<Utc>) -> Self
pub fn with_starting_timestamp(self, timestamp: DateTime<Utc>) -> Self
Timestamp to start from
Sourcepub fn with_columns(self, columns: Vec<String>) -> Self
pub fn with_columns(self, columns: Vec<String>) -> Self
Columns to select
Sourcepub async fn build(&self) -> DeltaResult<DeltaCdfScan>
pub async fn build(&self) -> DeltaResult<DeltaCdfScan>
Executes the scan
Trait Implementations§
Source§impl Clone for CdfLoadBuilder
impl Clone for CdfLoadBuilder
Source§fn clone(&self) -> CdfLoadBuilder
fn clone(&self) -> CdfLoadBuilder
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 moreAuto Trait Implementations§
impl Freeze for CdfLoadBuilder
impl !RefUnwindSafe for CdfLoadBuilder
impl Send for CdfLoadBuilder
impl Sync for CdfLoadBuilder
impl Unpin for CdfLoadBuilder
impl !UnwindSafe for CdfLoadBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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