@@ -123,7 +123,6 @@ public static class Config {
123
123
private final int m ;
124
124
private final int mMax ;
125
125
private final int mMax0 ;
126
- private final int efSearch ;
127
126
private final int efConstruction ;
128
127
private final boolean extendCandidates ;
129
128
private final boolean keepPrunedConnections ;
@@ -135,22 +134,20 @@ protected Config() {
135
134
this .m = DEFAULT_M ;
136
135
this .mMax = DEFAULT_M_MAX ;
137
136
this .mMax0 = DEFAULT_M_MAX_0 ;
138
- this .efSearch = DEFAULT_EF_SEARCH ;
139
137
this .efConstruction = DEFAULT_EF_CONSTRUCTION ;
140
138
this .extendCandidates = DEFAULT_EXTEND_CANDIDATES ;
141
139
this .keepPrunedConnections = DEFAULT_KEEP_PRUNED_CONNECTIONS ;
142
140
}
143
141
144
142
protected Config (@ Nonnull final Random random , @ Nonnull final Metric metric , final boolean useInlining ,
145
- final int m , final int mMax , final int mMax0 , final int efSearch , final int efConstruction ,
143
+ final int m , final int mMax , final int mMax0 , final int efConstruction ,
146
144
final boolean extendCandidates , final boolean keepPrunedConnections ) {
147
145
this .random = random ;
148
146
this .metric = metric ;
149
147
this .useInlining = useInlining ;
150
148
this .m = m ;
151
149
this .mMax = mMax ;
152
150
this .mMax0 = mMax0 ;
153
- this .efSearch = efSearch ;
154
151
this .efConstruction = efConstruction ;
155
152
this .extendCandidates = extendCandidates ;
156
153
this .keepPrunedConnections = keepPrunedConnections ;
@@ -182,10 +179,6 @@ public int getMMax0() {
182
179
return mMax0 ;
183
180
}
184
181
185
- public int getEfSearch () {
186
- return efSearch ;
187
- }
188
-
189
182
public int getEfConstruction () {
190
183
return efConstruction ;
191
184
}
@@ -201,15 +194,15 @@ public boolean isKeepPrunedConnections() {
201
194
@ Nonnull
202
195
public ConfigBuilder toBuilder () {
203
196
return new ConfigBuilder (getRandom (), getMetric (), isUseInlining (), getM (), getMMax (), getMMax0 (),
204
- getEfSearch (), getEfConstruction (), isExtendCandidates (), isKeepPrunedConnections ());
197
+ getEfConstruction (), isExtendCandidates (), isKeepPrunedConnections ());
205
198
}
206
199
207
200
@ Override
208
201
@ Nonnull
209
202
public String toString () {
210
203
return "Config[metric=" + getMetric () + "isUseInlining" + isUseInlining () + "M=" + getM () +
211
- " , MMax=" + getMMax () + " , MMax0=" + getMMax0 () + ", efSearch =" + getEfSearch () +
212
- ", efConstruction=" + getEfConstruction () + ", isExtendCandidates=" + isExtendCandidates () +
204
+ " , MMax=" + getMMax () + " , MMax0=" + getMMax0 () + ", efConstruction =" + getEfConstruction () +
205
+ ", isExtendCandidates=" + isExtendCandidates () +
213
206
", isKeepPrunedConnections=" + isKeepPrunedConnections () + "]" ;
214
207
}
215
208
}
@@ -230,7 +223,6 @@ public static class ConfigBuilder {
230
223
private int m = DEFAULT_M ;
231
224
private int mMax = DEFAULT_M_MAX ;
232
225
private int mMax0 = DEFAULT_M_MAX_0 ;
233
- private int efSearch = DEFAULT_EF_SEARCH ;
234
226
private int efConstruction = DEFAULT_EF_CONSTRUCTION ;
235
227
private boolean extendCandidates = DEFAULT_EXTEND_CANDIDATES ;
236
228
private boolean keepPrunedConnections = DEFAULT_KEEP_PRUNED_CONNECTIONS ;
@@ -239,15 +231,14 @@ public ConfigBuilder() {
239
231
}
240
232
241
233
public ConfigBuilder (@ Nonnull final Random random , @ Nonnull final Metric metric , final boolean useInlining ,
242
- final int m , final int mMax , final int mMax0 , final int efSearch , final int efConstruction ,
234
+ final int m , final int mMax , final int mMax0 , final int efConstruction ,
243
235
final boolean extendCandidates , final boolean keepPrunedConnections ) {
244
236
this .random = random ;
245
237
this .metric = metric ;
246
238
this .useInlining = useInlining ;
247
239
this .m = m ;
248
240
this .mMax = mMax ;
249
241
this .mMax0 = mMax0 ;
250
- this .efSearch = efSearch ;
251
242
this .efConstruction = efConstruction ;
252
243
this .extendCandidates = extendCandidates ;
253
244
this .keepPrunedConnections = keepPrunedConnections ;
@@ -314,15 +305,6 @@ public ConfigBuilder setMMax0(final int mMax0) {
314
305
return this ;
315
306
}
316
307
317
- public int getEfSearch () {
318
- return efSearch ;
319
- }
320
-
321
- public ConfigBuilder setEfSearch (final int efSearch ) {
322
- this .efSearch = efSearch ;
323
- return this ;
324
- }
325
-
326
308
public int getEfConstruction () {
327
309
return efConstruction ;
328
310
}
@@ -351,7 +333,7 @@ public ConfigBuilder setKeepPrunedConnections(final boolean keepPrunedConnection
351
333
}
352
334
353
335
public Config build () {
354
- return new Config (getRandom (), getMetric (), isUseInlining (), getM (), getMMax (), getMMax0 (), getEfSearch (),
336
+ return new Config (getRandom (), getMetric (), isUseInlining (), getM (), getMMax (), getMMax0 (),
355
337
getEfConstruction (), isExtendCandidates (), isKeepPrunedConnections ());
356
338
}
357
339
}
0 commit comments