@@ -469,6 +469,10 @@ class TTableDescription::TImpl {
469
469
Indexes_.emplace_back (TIndexDescription (indexName, type, indexColumns, dataColumns));
470
470
}
471
471
472
+ void AddSecondaryIndex (const TIndexDescription& indexDescription) {
473
+ Indexes_.emplace_back (indexDescription);
474
+ }
475
+
472
476
void AddVectorIndex (const std::string& indexName, EIndexType type, const std::vector<std::string>& indexColumns, const TVectorIndexSettings& vectorIndexSettings) {
473
477
Indexes_.emplace_back (TIndexDescription (indexName, type, indexColumns, {}, {}, vectorIndexSettings));
474
478
}
@@ -750,6 +754,10 @@ void TTableDescription::AddSecondaryIndex(const std::string& indexName, EIndexTy
750
754
Impl_->AddSecondaryIndex (indexName, type, indexColumns, dataColumns);
751
755
}
752
756
757
+ void TTableDescription::AddSecondaryIndex (const TIndexDescription& indexDescription) {
758
+ Impl_->AddSecondaryIndex (indexDescription);
759
+ }
760
+
753
761
void TTableDescription::AddSyncSecondaryIndex (const std::string& indexName, const std::vector<std::string>& indexColumns) {
754
762
AddSecondaryIndex (indexName, EIndexType::GlobalSync, indexColumns);
755
763
}
@@ -1174,6 +1182,11 @@ TTableBuilder& TTableBuilder::SetPrimaryKeyColumn(const std::string& primaryKeyC
1174
1182
return *this ;
1175
1183
}
1176
1184
1185
+ TTableBuilder& TTableBuilder::AddSecondaryIndex (const TIndexDescription& indexDescription) {
1186
+ TableDescription_.AddSecondaryIndex (indexDescription);
1187
+ return *this ;
1188
+ }
1189
+
1177
1190
TTableBuilder& TTableBuilder::AddSecondaryIndex (const std::string& indexName, EIndexType type, const std::vector<std::string>& indexColumns, const std::vector<std::string>& dataColumns) {
1178
1191
TableDescription_.AddSecondaryIndex (indexName, type, indexColumns, dataColumns);
1179
1192
return *this ;
@@ -2377,7 +2390,7 @@ TVectorIndexSettings TVectorIndexSettings::FromProto(const TProto& proto) {
2377
2390
default :
2378
2391
return {};
2379
2392
}
2380
- };
2393
+ };
2381
2394
2382
2395
return {
2383
2396
.Metric = metricFromProto (proto),
0 commit comments