MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / CheckValid

Method CheckValid

src/codec/codec.cc:492–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492bool RowView::CheckValid(uint32_t idx, ::fedb::type::DataType type) {
493 if (row_ == NULL || !is_valid_) {
494 return false;
495 }
496 if ((int32_t)idx >= schema_.size()) {
497 return false;
498 }
499 const ::fedb::common::ColumnDesc& column = schema_.Get(idx);
500 if (column.data_type() != type) {
501 return false;
502 }
503 return true;
504}
505
506int32_t RowView::GetBool(uint32_t idx, bool* val) {
507 if (val == NULL) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected