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

Method GetInt16

src/codec/codec.cc:606–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604}
605
606int32_t RowView::GetInt16(uint32_t idx, int16_t* val) {
607 if (val == NULL) {
608 return -1;
609 }
610 if (!CheckValid(idx, ::fedb::type::kSmallInt)) {
611 return -1;
612 }
613 if (IsNULL(row_, idx)) {
614 return 1;
615 }
616 uint32_t offset = offset_vec_.at(idx);
617 *val = v1::GetInt16Field(row_, offset);
618 return 0;
619}
620
621int32_t RowView::GetFloat(uint32_t idx, float* val) {
622 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

GetInt16FieldFunction · 0.85

Tested by 3

CompareRowFunction · 0.36
CompareRowFunction · 0.36
TEST_FFunction · 0.36