Class IntermediateCollection
- java.lang.Object
-
- com.yahoo.searchdefinition.parser.IntermediateCollection
-
public class IntermediateCollection extends Object
Class wrapping parsing of schema files and holding a collection of schemas in the intermediate format.- Author:
- arnej27959
-
-
Constructor Summary
Constructors Constructor Description IntermediateCollection(com.yahoo.config.application.api.DeployLogger logger, com.yahoo.config.model.api.ModelContext.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRankProfileFile(String schemaName, com.yahoo.io.reader.NamedReader reader)
parse a rank profile from the given reader and add to the schema identified by name.void
addSchemaFromFile(String fileName)
for unit testsvoid
addSchemaFromReader(com.yahoo.io.reader.NamedReader reader)
parse a schema from the given reader and add result to collectionParsedSchema
getParsedSchema(String name)
Map<String,ParsedSchema>
getParsedSchemas()
-
-
-
Method Detail
-
getParsedSchemas
public Map<String,ParsedSchema> getParsedSchemas()
-
getParsedSchema
public ParsedSchema getParsedSchema(String name)
-
addSchemaFromReader
public void addSchemaFromReader(com.yahoo.io.reader.NamedReader reader)
parse a schema from the given reader and add result to collection
-
addSchemaFromFile
public void addSchemaFromFile(String fileName)
for unit tests
-
addRankProfileFile
public void addRankProfileFile(String schemaName, com.yahoo.io.reader.NamedReader reader)
parse a rank profile from the given reader and add to the schema identified by name. note: the named schema must have been parsed already.
-
-