use oxidelake_core::params::{AggregateSpec, DistanceMetric, Predicate};
use crate::cpu::kernels::JoinTable;
use crate::{DeviceBatch, DeviceJoinMatches, DeviceJoinTable};
#[derive(Debug, Clone, Copy)]
pub struct FilterProjectArgs<'a> {
pub input: &'a DeviceBatch,
pub predicate: &'a Predicate,
pub projection: &'a [usize],
}
#[derive(Debug, Clone, Copy)]
pub struct JoinBuildArgs<'a> {
pub build: &'a DeviceBatch,
pub key: usize,
pub index: &'a JoinTable,
}
#[derive(Debug, Clone, Copy)]
pub struct JoinProbeArgs<'a> {
pub probe: &'a DeviceBatch,
pub key: usize,
pub table: &'a DeviceJoinTable,
}
#[derive(Debug, Clone, Copy)]
pub struct HashJoinArgs<'a> {
pub left: &'a DeviceBatch,
pub right: &'a DeviceBatch,
pub table: &'a DeviceJoinTable,
pub matches: &'a DeviceJoinMatches,
pub first: u64,
pub rows: usize,
}
#[derive(Debug, Clone, Copy)]
pub struct AggregateArgs<'a> {
pub input: &'a DeviceBatch,
pub spec: &'a AggregateSpec,
}
#[derive(Debug, Clone, Copy)]
pub struct VectorDistanceArgs<'a> {
pub input: &'a DeviceBatch,
pub column: usize,
pub query: &'a [f32],
pub metric: DistanceMetric,
pub output_name: &'a str,
}