MCPcopy Create free account
hub / github.com/bytedance/bolt / firstNonNull

Function firstNonNull

bolt/exec/MergeJoin.cpp:783–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781 }
782 return outputSize_ == outputBatchSize_;
783}
784
785namespace {
786vector_size_t firstNonNull(
787 const RowVectorPtr& rowVector,
788 const std::vector<column_index_t>& keys,
789 vector_size_t start = 0) {
790 for (auto i = start; i < rowVector->size(); ++i) {
791 bool hasNull = false;
792 for (auto key : keys) {
793 if (rowVector->childAt(key)->isNullAt(i)) {
794 hasNull = true;
795 break;
796 }
797 }
798 if (!hasNull) {
799 return i;
800 }
801 }
802
803 return rowVector->size();
804}

Callers 2

getOutputMethod · 0.85
doGetOutputMethod · 0.85

Calls 3

childAtMethod · 0.80
sizeMethod · 0.45
isNullAtMethod · 0.45

Tested by

no test coverage detected