@@ -95,7 +95,7 @@ inline Bitmap GetBitmap(const ArrayData& arr, int index) {
9595 return Bitmap{arr.buffers [index], arr.offset , arr.length };
9696}
9797
98- struct Invert {
98+ struct InvertOp {
9999 static Status Call (KernelContext* ctx, const Scalar& in, Scalar* out) {
100100 *checked_cast<BooleanScalar*>(out) = InvertScalar (in);
101101 return Status::OK ();
@@ -115,8 +115,8 @@ struct Commutative {
115115 }
116116};
117117
118- struct And : Commutative<And > {
119- using Commutative<And >::Call;
118+ struct AndOp : Commutative<AndOp > {
119+ using Commutative<AndOp >::Call;
120120
121121 static Status Call (KernelContext* ctx, const Scalar& left, const Scalar& right,
122122 Scalar* out) {
@@ -147,8 +147,8 @@ struct And : Commutative<And> {
147147 }
148148};
149149
150- struct KleeneAnd : Commutative<KleeneAnd > {
151- using Commutative<KleeneAnd >::Call;
150+ struct KleeneAndOp : Commutative<KleeneAndOp > {
151+ using Commutative<KleeneAndOp >::Call;
152152
153153 static Status Call (KernelContext* ctx, const Scalar& left, const Scalar& right,
154154 Scalar* out) {
@@ -205,7 +205,7 @@ struct KleeneAnd : Commutative<KleeneAnd> {
205205 if (left.GetNullCount () == 0 && right.GetNullCount () == 0 ) {
206206 out->null_count = 0 ;
207207 out->buffers [0 ] = nullptr ;
208- return And ::Call (ctx, left, right, out);
208+ return AndOp ::Call (ctx, left, right, out);
209209 }
210210 auto compute_word = [](uint64_t left_true, uint64_t left_false, uint64_t right_true,
211211 uint64_t right_false, uint64_t * out_valid,
@@ -218,8 +218,8 @@ struct KleeneAnd : Commutative<KleeneAnd> {
218218 }
219219};
220220
221- struct Or : Commutative<Or > {
222- using Commutative<Or >::Call;
221+ struct OrOp : Commutative<OrOp > {
222+ using Commutative<OrOp >::Call;
223223
224224 static Status Call (KernelContext* ctx, const Scalar& left, const Scalar& right,
225225 Scalar* out) {
@@ -250,8 +250,8 @@ struct Or : Commutative<Or> {
250250 }
251251};
252252
253- struct KleeneOr : Commutative<KleeneOr > {
254- using Commutative<KleeneOr >::Call;
253+ struct KleeneOrOp : Commutative<KleeneOrOp > {
254+ using Commutative<KleeneOrOp >::Call;
255255
256256 static Status Call (KernelContext* ctx, const Scalar& left, const Scalar& right,
257257 Scalar* out) {
@@ -308,7 +308,7 @@ struct KleeneOr : Commutative<KleeneOr> {
308308 if (left.GetNullCount () == 0 && right.GetNullCount () == 0 ) {
309309 out->null_count = 0 ;
310310 out->buffers [0 ] = nullptr ;
311- return Or ::Call (ctx, left, right, out);
311+ return OrOp ::Call (ctx, left, right, out);
312312 }
313313
314314 static auto compute_word = [](uint64_t left_true, uint64_t left_false,
@@ -323,8 +323,8 @@ struct KleeneOr : Commutative<KleeneOr> {
323323 }
324324};
325325
326- struct Xor : Commutative<Xor > {
327- using Commutative<Xor >::Call;
326+ struct XorOp : Commutative<XorOp > {
327+ using Commutative<XorOp >::Call;
328328
329329 static Status Call (KernelContext* ctx, const Scalar& left, const Scalar& right,
330330 Scalar* out) {
@@ -355,10 +355,10 @@ struct Xor : Commutative<Xor> {
355355 }
356356};
357357
358- struct AndNot {
358+ struct AndNotOp {
359359 static Status Call (KernelContext* ctx, const Scalar& left, const Scalar& right,
360360 Scalar* out) {
361- return And ::Call (ctx, left, InvertScalar (right), out);
361+ return AndOp ::Call (ctx, left, InvertScalar (right), out);
362362 }
363363
364364 static Status Call (KernelContext* ctx, const Scalar& left, const ArrayData& right,
@@ -373,7 +373,7 @@ struct AndNot {
373373
374374 static Status Call (KernelContext* ctx, const ArrayData& left, const Scalar& right,
375375 ArrayData* out) {
376- return And ::Call (ctx, left, InvertScalar (right), out);
376+ return AndOp ::Call (ctx, left, InvertScalar (right), out);
377377 }
378378
379379 static Status Call (KernelContext* ctx, const ArrayData& left, const ArrayData& right,
@@ -385,10 +385,10 @@ struct AndNot {
385385 }
386386};
387387
388- struct KleeneAndNot {
388+ struct KleeneAndNotOp {
389389 static Status Call (KernelContext* ctx, const Scalar& left, const Scalar& right,
390390 Scalar* out) {
391- return KleeneAnd ::Call (ctx, left, InvertScalar (right), out);
391+ return KleeneAndOp ::Call (ctx, left, InvertScalar (right), out);
392392 }
393393
394394 static Status Call (KernelContext* ctx, const Scalar& left, const ArrayData& right,
@@ -430,15 +430,15 @@ struct KleeneAndNot {
430430
431431 static Status Call (KernelContext* ctx, const ArrayData& left, const Scalar& right,
432432 ArrayData* out) {
433- return KleeneAnd ::Call (ctx, left, InvertScalar (right), out);
433+ return KleeneAndOp ::Call (ctx, left, InvertScalar (right), out);
434434 }
435435
436436 static Status Call (KernelContext* ctx, const ArrayData& left, const ArrayData& right,
437437 ArrayData* out) {
438438 if (left.GetNullCount () == 0 && right.GetNullCount () == 0 ) {
439439 out->null_count = 0 ;
440440 out->buffers [0 ] = nullptr ;
441- return AndNot ::Call (ctx, left, right, out);
441+ return AndNotOp ::Call (ctx, left, right, out);
442442 }
443443
444444 static auto compute_word = [](uint64_t left_true, uint64_t left_false,
@@ -543,20 +543,20 @@ namespace internal {
543543
544544void RegisterScalarBoolean (FunctionRegistry* registry) {
545545 // These functions can write into sliced output bitmaps
546- MakeFunction (" invert" , 1 , applicator::SimpleUnary<Invert >, &invert_doc, registry);
547- MakeFunction (" and" , 2 , applicator::SimpleBinary<And >, &and_doc, registry);
548- MakeFunction (" and_not" , 2 , applicator::SimpleBinary<AndNot >, &and_not_doc, registry);
549- MakeFunction (" or" , 2 , applicator::SimpleBinary<Or >, &or_doc, registry);
550- MakeFunction (" xor" , 2 , applicator::SimpleBinary<Xor >, &xor_doc, registry);
546+ MakeFunction (" invert" , 1 , applicator::SimpleUnary<InvertOp >, &invert_doc, registry);
547+ MakeFunction (" and" , 2 , applicator::SimpleBinary<AndOp >, &and_doc, registry);
548+ MakeFunction (" and_not" , 2 , applicator::SimpleBinary<AndNotOp >, &and_not_doc, registry);
549+ MakeFunction (" or" , 2 , applicator::SimpleBinary<OrOp >, &or_doc, registry);
550+ MakeFunction (" xor" , 2 , applicator::SimpleBinary<XorOp >, &xor_doc, registry);
551551
552552 // The Kleene logic kernels cannot write into sliced output bitmaps
553- MakeFunction (" and_kleene" , 2 , applicator::SimpleBinary<KleeneAnd >, &and_kleene_doc,
553+ MakeFunction (" and_kleene" , 2 , applicator::SimpleBinary<KleeneAndOp >, &and_kleene_doc,
554554 registry,
555555 /* can_write_into_slices=*/ false , NullHandling::COMPUTED_PREALLOCATE);
556- MakeFunction (" and_not_kleene" , 2 , applicator::SimpleBinary<KleeneAndNot >,
556+ MakeFunction (" and_not_kleene" , 2 , applicator::SimpleBinary<KleeneAndNotOp >,
557557 &and_not_kleene_doc, registry,
558558 /* can_write_into_slices=*/ false , NullHandling::COMPUTED_PREALLOCATE);
559- MakeFunction (" or_kleene" , 2 , applicator::SimpleBinary<KleeneOr >, &or_kleene_doc,
559+ MakeFunction (" or_kleene" , 2 , applicator::SimpleBinary<KleeneOrOp >, &or_kleene_doc,
560560 registry,
561561 /* can_write_into_slices=*/ false , NullHandling::COMPUTED_PREALLOCATE);
562562}
0 commit comments