-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30613 from vespa-engine/balder/cleanup-backend-co…
…nstruction Balder/cleanup backend construction
- Loading branch information
Showing
11 changed files
with
116 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 24 additions & 5 deletions
29
container-search/src/main/java/com/yahoo/prelude/fastsearch/ClusterParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,40 @@ | ||
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. | ||
package com.yahoo.prelude.fastsearch; | ||
|
||
import com.yahoo.search.schema.SchemaInfo; | ||
|
||
/** | ||
* Helper class for carrying around cluster-related | ||
* config parameters to the FastSearcher class. | ||
* config parameters to the VespaBackend class. | ||
* | ||
* @author arnej27959 | ||
*/ | ||
public class ClusterParams { | ||
|
||
public final String searcherName; | ||
private final String searcherName; | ||
private final String serverId; | ||
private final String defaultSummary; | ||
private final DocumentdbInfoConfig documentdbInfoConfig; | ||
private final SchemaInfo schemaInfo; | ||
|
||
/** | ||
* Make up full ClusterParams | ||
*/ | ||
public ClusterParams(String name) { | ||
this(name, "server.0", null, null, null); | ||
} | ||
public ClusterParams(String name, String serverId, String defaultSummary, | ||
DocumentdbInfoConfig documentdbInfoConfig, SchemaInfo schemaInfo) { | ||
this.searcherName = name; | ||
this.serverId = serverId; | ||
if (defaultSummary != null && defaultSummary.isEmpty()) | ||
this.defaultSummary = null; | ||
else | ||
this.defaultSummary = defaultSummary; | ||
this.documentdbInfoConfig = documentdbInfoConfig; | ||
this.schemaInfo = schemaInfo; | ||
} | ||
|
||
public String getServerId() { return serverId; } | ||
public String getSearcherName() { return searcherName; } | ||
public String getDefaultSummary() { return defaultSummary; } | ||
public DocumentdbInfoConfig getDocumentdbInfoConfig() { return documentdbInfoConfig; } | ||
public SchemaInfo getSchemaInfo() { return schemaInfo; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
container-search/src/main/java/com/yahoo/prelude/fastsearch/SummaryParameters.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.