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

Method GetTimestamp

src/codec/codec.cc:576–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574}
575
576int32_t RowView::GetTimestamp(uint32_t idx, int64_t* val) {
577 if (val == NULL) {
578 return -1;
579 }
580 if (!CheckValid(idx, ::fedb::type::kTimestamp)) {
581 return -1;
582 }
583 if (IsNULL(row_, idx)) {
584 return 1;
585 }
586 uint32_t offset = offset_vec_.at(idx);
587 *val = v1::GetInt64Field(row_, offset);
588 return 0;
589}
590
591int32_t RowView::GetInt64(uint32_t idx, int64_t* val) {
592 if (val == NULL) {

Callers 4

DecodeRowMethod · 0.45
ProjectMethod · 0.45
GetTimeMethod · 0.45
GetTimeMethod · 0.45

Calls 1

GetInt64FieldFunction · 0.85

Tested by

no test coverage detected