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

Function MakeFilter

cpp/src/arrow/util/test_common.cc:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58Transformer<TestInt, TestStr> MakeFilter(std::function<bool(TestInt&)> filter) {
59 return [filter](TestInt next) -> Result<TransformFlow<TestStr>> {
60 if (filter(next)) {
61 return TransformYield(TestStr(next));
62 } else {
63 return TransformSkip();
64 }
65 };
66}
67
68void AssertBytesEqual(const uint8_t* left, const std::vector<uint8_t>& right) {
69 auto left_array = std::vector<uint8_t>(left, left + right.size());

Callers 4

TESTFunction · 0.85
TESTFunction · 0.85
BaseBloomFilterMethod · 0.85
SSE42FilterMethod · 0.85

Calls 3

TransformYieldFunction · 0.85
TestStrClass · 0.85
TransformSkipClass · 0.85

Tested by

no test coverage detected