pub struct OneSideHashJoiner {
build_side: JoinSide,
pub input_buffer: RecordBatch,
pub(crate) on: Vec<PhysicalExprRef>,
pub(crate) hashmap: PruningJoinHashMap,
pub(crate) hashes_buffer: Vec<u64>,
pub(crate) visited_rows: HashSet<usize>,
pub(crate) offset: usize,
pub(crate) deleted_offset: usize,
}Fields§
§build_side: JoinSideBuild side
input_buffer: RecordBatchInput record batch buffer
on: Vec<PhysicalExprRef>Columns from the side
hashmap: PruningJoinHashMapHashmap
hashes_buffer: Vec<u64>Reuse the hashes buffer
visited_rows: HashSet<usize>Matched rows
offset: usizeOffset
deleted_offset: usizeDeleted offset
Implementations§
Source§impl OneSideHashJoiner
impl OneSideHashJoiner
pub fn size(&self) -> usize
pub fn new( build_side: JoinSide, on: Vec<PhysicalExprRef>, schema: SchemaRef, ) -> Self
Sourcepub(crate) fn update_internal_state(
&mut self,
batch: &RecordBatch,
random_state: &RandomState,
) -> Result<()>
pub(crate) fn update_internal_state( &mut self, batch: &RecordBatch, random_state: &RandomState, ) -> Result<()>
Updates the internal state of the OneSideHashJoiner with the incoming batch.
§Arguments
batch- The incoming [RecordBatch] to be merged with the internal input bufferrandom_state- The random state used to hash values
§Returns
Returns a Result encapsulating any intermediate errors.
Sourcepub(crate) fn calculate_prune_length_with_probe_batch(
&mut self,
build_side_sorted_filter_expr: &mut SortedFilterExpr,
probe_side_sorted_filter_expr: &mut SortedFilterExpr,
graph: &mut ExprIntervalGraph,
) -> Result<usize>
pub(crate) fn calculate_prune_length_with_probe_batch( &mut self, build_side_sorted_filter_expr: &mut SortedFilterExpr, probe_side_sorted_filter_expr: &mut SortedFilterExpr, graph: &mut ExprIntervalGraph, ) -> Result<usize>
Calculate prune length.
§Arguments
build_side_sorted_filter_expr- Build side mutable sorted filter expression..probe_side_sorted_filter_expr- Probe side mutable sorted filter expression.graph- A mutable reference to the physical expression graph.
§Returns
A Result object that contains the pruning length.
pub(crate) fn prune_internal_state(&mut self, prune_length: usize) -> Result<()>
Auto Trait Implementations§
impl Freeze for OneSideHashJoiner
impl !RefUnwindSafe for OneSideHashJoiner
impl Send for OneSideHashJoiner
impl Sync for OneSideHashJoiner
impl Unpin for OneSideHashJoiner
impl !UnwindSafe for OneSideHashJoiner
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
§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