| 559 | } |
| 560 | |
| 561 | int32_t RowView::GetInt32(uint32_t idx, int32_t* val) { |
| 562 | if (val == NULL) { |
| 563 | return -1; |
| 564 | } |
| 565 | if (!CheckValid(idx, ::fedb::type::kInt)) { |
| 566 | return -1; |
| 567 | } |
| 568 | if (IsNULL(row_, idx)) { |
| 569 | return 1; |
| 570 | } |
| 571 | uint32_t offset = offset_vec_.at(idx); |
| 572 | *val = v1::GetInt32Field(row_, offset); |
| 573 | return 0; |
| 574 | } |
| 575 | |
| 576 | int32_t RowView::GetTimestamp(uint32_t idx, int64_t* val) { |
| 577 | if (val == NULL) { |