MCPcopy Create free account
hub / github.com/apache/arrow / RunBulkFilter

Method RunBulkFilter

cpp/src/arrow/csv/chunker.cc:243–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241 using BulkWordType = typename BulkFilterType::WordType;
242
243 const char* RunBulkFilter(const char* data, const char* data_end) {
244 while (true) {
245 if (ARROW_PREDICT_FALSE(static_cast<size_t>(data_end - data) <
246 sizeof(BulkWordType))) {
247 if (ARROW_PREDICT_FALSE(data == data_end)) {
248 return nullptr;
249 }
250 return data;
251 }
252 BulkWordType word;
253 memcpy(&word, data, sizeof(BulkWordType));
254 if (bulk_filter_.Matches(word)) {
255 return data;
256 }
257 // No special chars
258 data += sizeof(BulkWordType);
259 }
260 }
261
262 const ParseOptions& options_;
263 const BulkFilterType bulk_filter_;

Callers

nothing calls this directly

Calls 1

MatchesMethod · 0.45

Tested by

no test coverage detected