Package com.yahoo.schema.derived
Class DerivedConfiguration
java.lang.Object
com.yahoo.schema.derived.DerivedConfiguration
A set of all derived configuration of a schema. Use this as a facade to individual configurations when
necessary.
- Author:
- bratseth
-
Constructor Summary
ConstructorsConstructorDescriptionDerivedConfiguration(DeployState deployState, Schema schema, SchemaInfo.IndexMode indexMode) Creates a complete derived configuration snapshot from a schema.DerivedConfiguration(Schema schema, RankProfileRegistry rankProfileRegistry) Creates a complete derived configuration from a search definition. -
Method Summary
Modifier and TypeMethodDescriptionvoidExports a complete set of configuration-server format config files.voidexportConstants(String toDirectory) static voidexportDocuments(com.yahoo.document.config.DocumentmanagerConfig.Builder documentManagerCfg, String toDirectory) static voidexportDocuments(com.yahoo.document.config.DocumenttypesConfig.Builder documentTypesCfg, String toDirectory) voidexportOnnxModels(String toDirectory) static voidexportQueryProfiles(com.yahoo.search.query.profile.QueryProfileRegistry queryProfileRegistry, String toDirectory) voidgetConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder, AttributeFields.FieldSet fs) com.yahoo.search.query.profile.QueryProfileRegistrybooleanvoidsetIndexingScript(IndexingScript script)
-
Constructor Details
-
DerivedConfiguration
Creates a complete derived configuration from a search definition. Only used in tests.- Parameters:
schema- the search to derive a configuration from. Derived objects will be snapshots, but this argument is live. Which means that this object will be inconsistent when the given search definition is later modified.rankProfileRegistry- aRankProfileRegistry
-
DerivedConfiguration
Creates a complete derived configuration snapshot from a schema.- Parameters:
schema- the schema to derive a configuration from. Derived objects will be snapshots, but this argument is live. Which means that this object will be inconsistent if the given schema is later modified.
-
-
Method Details
-
export
Exports a complete set of configuration-server format config files.- Parameters:
toDirectory- the directory to export to, current dir if null- Throws:
IOException- if exporting fails, some files may still be created
-
exportDocuments
public static void exportDocuments(com.yahoo.document.config.DocumentmanagerConfig.Builder documentManagerCfg, String toDirectory) throws IOException - Throws:
IOException
-
exportDocuments
public static void exportDocuments(com.yahoo.document.config.DocumenttypesConfig.Builder documentTypesCfg, String toDirectory) throws IOException - Throws:
IOException
-
exportQueryProfiles
public static void exportQueryProfiles(com.yahoo.search.query.profile.QueryProfileRegistry queryProfileRegistry, String toDirectory) throws IOException - Throws:
IOException
-
exportConstants
- Throws:
IOException
-
exportOnnxModels
- Throws:
IOException
-
isStreaming
public boolean isStreaming() -
getIndexMode
-
getSummaries
-
getAttributeFields
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder) -
getConfig
public void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder, AttributeFields.FieldSet fs) -
getIndexingScript
-
getIndexInfo
-
getSchemaInfo
-
setIndexingScript
-
getSchema
-
getRankProfileList
-
getVsmSummary
-
getVsmFields
-
getIndexSchema
-
getJuniperrc
-
getImportedFields
-
getQueryProfiles
public com.yahoo.search.query.profile.QueryProfileRegistry getQueryProfiles()
-