Package com.yahoo.schema.parser
Class IntermediateCollection
java.lang.Object
com.yahoo.schema.parser.IntermediateCollection
Class wrapping parsing of schema files and holding a collection of
schemas in the intermediate format.
- Author:
- arnej27959
-
Constructor Summary
ConstructorDescriptionIntermediateCollection
(com.yahoo.config.application.api.DeployLogger logger, com.yahoo.config.model.api.ModelContext.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRankProfileFile
(String schemaName, com.yahoo.io.reader.NamedReader reader) Parses a rank profile from the given reader and add to the schema identified by name.addSchemaFromFile
(String fileName) For unit testsaddSchemaFromReader
(com.yahoo.io.reader.NamedReader reader) Parses a schema from the given reader and add result to collection.addSchemaFromString
(String input) getParsedSchema
(String name)
-
Constructor Details
-
IntermediateCollection
public IntermediateCollection(com.yahoo.config.application.api.DeployLogger logger, com.yahoo.config.model.api.ModelContext.Properties properties)
-
-
Method Details
-
getParsedSchemas
-
getParsedSchema
-
addSchemaFromString
- Throws:
ParseException
-
addSchemaFromReader
Parses a schema from the given reader and add result to collection. -
addSchemaFromFile
For unit tests -
addRankProfileFile
public void addRankProfileFile(String schemaName, com.yahoo.io.reader.NamedReader reader) throws ParseException Parses a rank profile from the given reader and add to the schema identified by name. note: the named schema must have been parsed already.- Throws:
ParseException
-