| 103 | } |
| 104 | |
| 105 | uint32_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 | |
| 118 | bool ColumnDefSortFunc(const ColumnDef& cd_a, const ColumnDef& cd_b) { return (cd_a.GetId() < cd_b.GetId()); } |
| 119 | |