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

Method Matches

cpp/src/arrow/compute/kernel.cc:407–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407bool InputType::Matches(const DataType& type) const {
408 switch (kind_) {
409 case InputType::EXACT_TYPE:
410 return type_->Equals(type);
411 case InputType::USE_TYPE_MATCHER:
412 return type_matcher_->Matches(type);
413 case InputType::ANY_TYPE:
414 return true;
415 }
416 return false;
417}
418
419bool InputType::Matches(const Datum& value) const {
420 switch (value.kind()) {

Callers 3

TESTFunction · 0.45
MatchesMethod · 0.45
MatchesInputsMethod · 0.45

Calls 4

MatchesClass · 0.85
EqualsMethod · 0.45
kindMethod · 0.45
typeMethod · 0.45

Tested by 1

TESTFunction · 0.36