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

Method GetTime

src/sdk/batch_request_result_set_sql.cc:335–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335bool SQLBatchRequestResultSet::GetTime(uint32_t index, int64_t* mills) {
336 if (mills == NULL) {
337 LOG(WARNING) << "input ptr is null pointer";
338 return false;
339 }
340 if (!IsValidColumnIdx(index)) {
341 LOG(WARNING) << "column idx out of bound " << index;
342 return false;
343 }
344 size_t mapped_index = column_remap_[index];
345 int32_t ret;
346 if (IsCommonColumnIdx(index)) {
347 ret = common_row_view_->GetTimestamp(mapped_index, mills);
348 } else {
349 ret = non_common_row_view_->GetTimestamp(mapped_index, mills);
350 }
351 return ret == 0;
352}
353
354} // namespace sdk
355} // namespace fedb

Callers

nothing calls this directly

Calls 1

GetTimestampMethod · 0.45

Tested by

no test coverage detected