11mod compare;
2+ mod filter;
23
34use std:: fmt:: Debug ;
45
56use vortex_array:: arrays:: ConstantArray ;
67use vortex_array:: compute:: {
7- BetweenFn , BetweenOptions , CompareFn , FilterKernelAdapter , FilterKernelImpl , ScalarAtFn ,
8- SliceFn , StrictComparison , TakeFn , between , filter , scalar_at , slice, take,
8+ BetweenFn , BetweenOptions , ScalarAtFn , SliceFn , StrictComparison , TakeFn , between , scalar_at ,
9+ slice, take,
910} ;
1011use vortex_array:: variants:: PrimitiveArrayTrait ;
1112use vortex_array:: vtable:: ComputeVTable ;
12- use vortex_array:: { Array , ArrayRef , register_kernel } ;
13+ use vortex_array:: { Array , ArrayRef } ;
1314use vortex_dtype:: { NativePType , Nullability } ;
1415use vortex_error:: VortexResult ;
15- use vortex_mask:: Mask ;
1616use vortex_scalar:: { Scalar , ScalarType } ;
1717
1818use crate :: { ALPArray , ALPEncoding , ALPFloat , match_each_alp_float_ptype} ;
@@ -22,10 +22,6 @@ impl ComputeVTable for ALPEncoding {
2222 Some ( self )
2323 }
2424
25- fn compare_fn ( & self ) -> Option < & dyn CompareFn < & dyn Array > > {
26- Some ( self )
27- }
28-
2925 fn scalar_at_fn ( & self ) -> Option < & dyn ScalarAtFn < & dyn Array > > {
3026 Some ( self )
3127 }
@@ -98,23 +94,6 @@ impl SliceFn<&ALPArray> for ALPEncoding {
9894 }
9995}
10096
101- impl FilterKernelImpl for ALPEncoding {
102- fn filter ( & self , array : & ALPArray , mask : & Mask ) -> VortexResult < ArrayRef > {
103- let patches = array
104- . patches ( )
105- . map ( |p| p. filter ( mask) )
106- . transpose ( ) ?
107- . flatten ( ) ;
108-
109- Ok (
110- ALPArray :: try_new ( filter ( array. encoded ( ) , mask) ?, array. exponents ( ) , patches) ?
111- . into_array ( ) ,
112- )
113- }
114- }
115-
116- register_kernel ! ( FilterKernelAdapter ( ALPEncoding ) . lift( ) ) ;
117-
11897impl BetweenFn < & ALPArray > for ALPEncoding {
11998 fn between (
12099 & self ,
0 commit comments