@@ -43,15 +43,15 @@ use datafusion_physical_expr_common::binary_map::{OutputType, INITIAL_BUFFER_CAP
43
43
/// (similar to various builders in Arrow-rs) that allow for quick comparison to
44
44
/// incoming rows.
45
45
///
46
- pub trait ArrayRowEq : Send + Sync {
46
+ pub trait GroupColumn : Send + Sync {
47
47
/// Returns equal if the row stored in this builder at `lhs_row` is equal to
48
48
/// the row in `array` at `rhs_row`
49
49
fn equal_to ( & self , lhs_row : usize , array : & ArrayRef , rhs_row : usize ) -> bool ;
50
50
/// Appends the row at `row` in `array` to this builder
51
51
fn append_val ( & mut self , array : & ArrayRef , row : usize ) ;
52
52
/// Returns the number of rows stored in this builder
53
53
fn len ( & self ) -> usize ;
54
- /// Returns the number of bytes used by this [`ArrayRowEq `]
54
+ /// Returns the number of bytes used by this [`GroupColumn `]
55
55
fn size ( & self ) -> usize ;
56
56
/// Builds a new array from all of the stored rows
57
57
fn build ( self : Box < Self > ) -> ArrayRef ;
82
82
}
83
83
}
84
84
85
- impl < T : ArrowPrimitiveType > ArrayRowEq for PrimitiveGroupValueBuilder < T > {
85
+ impl < T : ArrowPrimitiveType > GroupColumn for PrimitiveGroupValueBuilder < T > {
86
86
fn equal_to ( & self , lhs_row : usize , array : & ArrayRef , rhs_row : usize ) -> bool {
87
87
// non-null fast path
88
88
// both non-null
@@ -225,7 +225,7 @@ where
225
225
}
226
226
}
227
227
228
- impl < O > ArrayRowEq for ByteGroupValueBuilder < O >
228
+ impl < O > GroupColumn for ByteGroupValueBuilder < O >
229
229
where
230
230
O : OffsetSizeTrait ,
231
231
{
@@ -407,7 +407,7 @@ mod tests {
407
407
use arrow_array:: { ArrayRef , StringArray } ;
408
408
use datafusion_physical_expr:: binary_map:: OutputType ;
409
409
410
- use super :: { ArrayRowEq , ByteGroupValueBuilder } ;
410
+ use super :: { ByteGroupValueBuilder , GroupColumn } ;
411
411
412
412
#[ test]
413
413
fn test_take_n ( ) {
0 commit comments