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

Method GetKeyEntryMaxHeight

src/storage/schema.cc:105–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105uint32_t InnerIndexSt::GetKeyEntryMaxHeight(uint32_t abs_max_height, uint32_t lat_max_height) const {
106 uint32_t max_height = lat_max_height;
107 for (const auto& cur_index : index_) {
108 ::fedb::storage::TTLType ttl_type = cur_index->GetTTLType();
109 if (ttl_type == ::fedb::storage::TTLType::kAbsoluteTime ||
110 ttl_type == ::fedb::storage::TTLType::kAbsAndLat) {
111 max_height = abs_max_height;
112 break;
113 }
114 }
115 return max_height;
116}
117
118bool ColumnDefSortFunc(const ColumnDef& cd_a, const ColumnDef& cd_b) { return (cd_a.GetId() < cd_b.GetId()); }
119

Callers 1

InitMethod · 0.80

Calls 1

GetTTLTypeMethod · 0.45

Tested by

no test coverage detected