@@ -279,7 +279,7 @@ impl VTable for Binary {
279279/// # use vortex_buffer::buffer;
280280/// # use vortex_array::expr::{eq, root, lit};
281281/// let xs = PrimitiveArray::new(buffer![1i32, 2i32, 3i32], Validity::NonNullable);
282- /// let result = eq(root(), lit(3)).evaluate(&xs.to_array( )).unwrap();
282+ /// let result = xs.to_array().apply(& eq(root(), lit(3))).unwrap();
283283///
284284/// assert_eq!(
285285/// result.to_bool().to_bit_buffer(),
@@ -298,12 +298,12 @@ pub fn eq(lhs: Expression, rhs: Expression) -> Expression {
298298///
299299/// ```
300300/// # use vortex_array::arrays::{BoolArray, PrimitiveArray};
301- /// # use vortex_array::{IntoArray, ToCanonical};
301+ /// # use vortex_array::{Array, IntoArray, ToCanonical};
302302/// # use vortex_array::validity::Validity;
303303/// # use vortex_buffer::buffer;
304304/// # use vortex_array::expr::{root, lit, not_eq};
305305/// let xs = PrimitiveArray::new(buffer![1i32, 2i32, 3i32], Validity::NonNullable);
306- /// let result = not_eq(root(), lit(3)).evaluate(&xs.to_array( )).unwrap();
306+ /// let result = xs.to_array().apply(& not_eq(root(), lit(3))).unwrap();
307307///
308308/// assert_eq!(
309309/// result.to_bool().to_bit_buffer(),
@@ -322,12 +322,12 @@ pub fn not_eq(lhs: Expression, rhs: Expression) -> Expression {
322322///
323323/// ```
324324/// # use vortex_array::arrays::{BoolArray, PrimitiveArray };
325- /// # use vortex_array::{IntoArray, ToCanonical};
325+ /// # use vortex_array::{Array, IntoArray, ToCanonical};
326326/// # use vortex_array::validity::Validity;
327327/// # use vortex_buffer::buffer;
328328/// # use vortex_array::expr::{gt_eq, root, lit};
329329/// let xs = PrimitiveArray::new(buffer![1i32, 2i32, 3i32], Validity::NonNullable);
330- /// let result = gt_eq(root(), lit(3)).evaluate(&xs.to_array( )).unwrap();
330+ /// let result = xs.to_array().apply(& gt_eq(root(), lit(3))).unwrap();
331331///
332332/// assert_eq!(
333333/// result.to_bool().to_bit_buffer(),
@@ -346,12 +346,12 @@ pub fn gt_eq(lhs: Expression, rhs: Expression) -> Expression {
346346///
347347/// ```
348348/// # use vortex_array::arrays::{BoolArray, PrimitiveArray };
349- /// # use vortex_array::{IntoArray, ToCanonical};
349+ /// # use vortex_array::{Array, IntoArray, ToCanonical};
350350/// # use vortex_array::validity::Validity;
351351/// # use vortex_buffer::buffer;
352352/// # use vortex_array::expr::{gt, root, lit};
353353/// let xs = PrimitiveArray::new(buffer![1i32, 2i32, 3i32], Validity::NonNullable);
354- /// let result = gt(root(), lit(2)).evaluate(&xs.to_array( )).unwrap();
354+ /// let result = xs.to_array().apply(& gt(root(), lit(2))).unwrap();
355355///
356356/// assert_eq!(
357357/// result.to_bool().to_bit_buffer(),
@@ -370,12 +370,12 @@ pub fn gt(lhs: Expression, rhs: Expression) -> Expression {
370370///
371371/// ```
372372/// # use vortex_array::arrays::{BoolArray, PrimitiveArray };
373- /// # use vortex_array::{IntoArray, ToCanonical};
373+ /// # use vortex_array::{Array, IntoArray, ToCanonical};
374374/// # use vortex_array::validity::Validity;
375375/// # use vortex_buffer::buffer;
376376/// # use vortex_array::expr::{root, lit, lt_eq};
377377/// let xs = PrimitiveArray::new(buffer![1i32, 2i32, 3i32], Validity::NonNullable);
378- /// let result = lt_eq(root(), lit(2)).evaluate(&xs.to_array( )).unwrap();
378+ /// let result = xs.to_array().apply(& lt_eq(root(), lit(2))).unwrap();
379379///
380380/// assert_eq!(
381381/// result.to_bool().to_bit_buffer(),
@@ -394,12 +394,12 @@ pub fn lt_eq(lhs: Expression, rhs: Expression) -> Expression {
394394///
395395/// ```
396396/// # use vortex_array::arrays::{BoolArray, PrimitiveArray };
397- /// # use vortex_array::{IntoArray, ToCanonical};
397+ /// # use vortex_array::{Array, IntoArray, ToCanonical};
398398/// # use vortex_array::validity::Validity;
399399/// # use vortex_buffer::buffer;
400400/// # use vortex_array::expr::{root, lit, lt};
401401/// let xs = PrimitiveArray::new(buffer![1i32, 2i32, 3i32], Validity::NonNullable);
402- /// let result = lt(root(), lit(3)).evaluate(&xs.to_array( )).unwrap();
402+ /// let result = xs.to_array().apply(& lt(root(), lit(3))).unwrap();
403403///
404404/// assert_eq!(
405405/// result.to_bool().to_bit_buffer(),
@@ -418,10 +418,10 @@ pub fn lt(lhs: Expression, rhs: Expression) -> Expression {
418418///
419419/// ```
420420/// # use vortex_array::arrays::BoolArray;
421- /// # use vortex_array::{IntoArray, ToCanonical};
421+ /// # use vortex_array::{Array, IntoArray, ToCanonical};
422422/// # use vortex_array::expr::{root, lit, or};
423423/// let xs = BoolArray::from_iter(vec![true, false, true]);
424- /// let result = or(root(), lit(false)).evaluate(&xs.to_array( )).unwrap();
424+ /// let result = xs.to_array().apply(& or(root(), lit(false))).unwrap();
425425///
426426/// assert_eq!(
427427/// result.to_bool().to_bit_buffer(),
@@ -452,10 +452,10 @@ where
452452///
453453/// ```
454454/// # use vortex_array::arrays::BoolArray;
455- /// # use vortex_array::{IntoArray, ToCanonical};
455+ /// # use vortex_array::{Array, IntoArray, ToCanonical};
456456/// # use vortex_array::expr::{and, root, lit};
457457/// let xs = BoolArray::from_iter(vec![true, false, true]);
458- /// let result = and(root(), lit(true)).evaluate(&xs.to_array( )).unwrap();
458+ /// let result = xs.to_array().apply(& and(root(), lit(true))).unwrap();
459459///
460460/// assert_eq!(
461461/// result.to_bool().to_bit_buffer(),
@@ -495,14 +495,12 @@ where
495495/// ## Example usage
496496///
497497/// ```
498- /// # use vortex_array::IntoArray;
498+ /// # use vortex_array::{Array, IntoArray} ;
499499/// # use vortex_array::arrow::IntoArrowArray as _;
500500/// # use vortex_buffer::buffer;
501501/// # use vortex_array::expr::{checked_add, lit, root};
502502/// let xs = buffer![1, 2, 3].into_array();
503- /// let result = checked_add(root(), lit(5))
504- /// .evaluate(&xs.to_array())
505- /// .unwrap();
503+ /// let result = xs.apply(&checked_add(root(), lit(5))).unwrap();
506504///
507505/// assert_eq!(
508506/// &result.into_arrow_preferred().unwrap(),
0 commit comments