| 490 | } |
| 491 | |
| 492 | bool 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 | |
| 506 | int32_t RowView::GetBool(uint32_t idx, bool* val) { |
| 507 | if (val == NULL) { |