@@ -231,7 +231,7 @@ void TestPrimitiveBuilder<PBoolean>::Check(
231
231
232
232
for (int i = 0 ; i < result->length (); ++i) {
233
233
if (nullable) { ASSERT_EQ (valid_bytes_[i] == 0 , result->IsNull (i)) << i; }
234
- bool actual = util::get_bit (result->raw_data (), i);
234
+ bool actual = BitUtil::GetBit (result->raw_data (), i);
235
235
ASSERT_EQ (static_cast <bool >(draws_[i]), actual) << i;
236
236
}
237
237
ASSERT_TRUE (result->EqualsExact (*expected.get ()));
@@ -253,8 +253,8 @@ TYPED_TEST(TestPrimitiveBuilder, TestInit) {
253
253
254
254
int n = 1000 ;
255
255
ASSERT_OK (this ->builder_ ->Reserve (n));
256
- ASSERT_EQ (util::next_power2 (n), this ->builder_ ->capacity ());
257
- ASSERT_EQ (util::next_power2 (type_traits<Type>::bytes_required (n)),
256
+ ASSERT_EQ (BitUtil::NextPower2 (n), this ->builder_ ->capacity ());
257
+ ASSERT_EQ (BitUtil::NextPower2 (type_traits<Type>::bytes_required (n)),
258
258
this ->builder_ ->data ()->size ());
259
259
260
260
// unsure if this should go in all builder classes
@@ -403,10 +403,10 @@ TYPED_TEST(TestPrimitiveBuilder, TestAppendScalar) {
403
403
}
404
404
405
405
ASSERT_EQ (size, this ->builder_ ->length ());
406
- ASSERT_EQ (util::next_power2 (size), this ->builder_ ->capacity ());
406
+ ASSERT_EQ (BitUtil::NextPower2 (size), this ->builder_ ->capacity ());
407
407
408
408
ASSERT_EQ (size, this ->builder_nn_ ->length ());
409
- ASSERT_EQ (util::next_power2 (size), this ->builder_nn_ ->capacity ());
409
+ ASSERT_EQ (BitUtil::NextPower2 (size), this ->builder_nn_ ->capacity ());
410
410
411
411
this ->Check (this ->builder_ , true );
412
412
this ->Check (this ->builder_nn_ , false );
@@ -438,7 +438,7 @@ TYPED_TEST(TestPrimitiveBuilder, TestAppendVector) {
438
438
ASSERT_OK (this ->builder_nn_ ->Append (draws.data () + K, size - K));
439
439
440
440
ASSERT_EQ (size, this ->builder_ ->length ());
441
- ASSERT_EQ (util::next_power2 (size), this ->builder_ ->capacity ());
441
+ ASSERT_EQ (BitUtil::NextPower2 (size), this ->builder_ ->capacity ());
442
442
443
443
this ->Check (this ->builder_ , true );
444
444
this ->Check (this ->builder_nn_ , false );
@@ -466,7 +466,7 @@ TYPED_TEST(TestPrimitiveBuilder, TestResize) {
466
466
ASSERT_EQ (cap, this ->builder_ ->capacity ());
467
467
468
468
ASSERT_EQ (type_traits<Type>::bytes_required (cap), this ->builder_ ->data ()->size ());
469
- ASSERT_EQ (util::bytes_for_bits (cap), this ->builder_ ->null_bitmap ()->size ());
469
+ ASSERT_EQ (BitUtil::BytesForBits (cap), this ->builder_ ->null_bitmap ()->size ());
470
470
}
471
471
472
472
TYPED_TEST (TestPrimitiveBuilder, TestReserve) {
@@ -478,7 +478,7 @@ TYPED_TEST(TestPrimitiveBuilder, TestReserve) {
478
478
ASSERT_OK (this ->builder_ ->Advance (100 ));
479
479
ASSERT_OK (this ->builder_ ->Reserve (kMinBuilderCapacity ));
480
480
481
- ASSERT_EQ (util::next_power2 (kMinBuilderCapacity + 100 ), this ->builder_ ->capacity ());
481
+ ASSERT_EQ (BitUtil::NextPower2 (kMinBuilderCapacity + 100 ), this ->builder_ ->capacity ());
482
482
}
483
483
484
484
} // namespace arrow
0 commit comments