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

Method GetInt32

src/codec/codec.cc:561–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561int32_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
576int32_t RowView::GetTimestamp(uint32_t idx, int64_t* val) {
577 if (val == NULL) {

Callers 7

CompareRowFunction · 0.45
CompareRowFunction · 0.45
DecodeRowMethod · 0.45
TEST_FFunction · 0.45
ProjectMethod · 0.45
PrintResultSetFunction · 0.45
WriteValueFunction · 0.45

Calls 1

GetInt32FieldFunction · 0.85

Tested by 3

CompareRowFunction · 0.36
CompareRowFunction · 0.36
TEST_FFunction · 0.36