Class 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 Detail

      • IntermediateCollection

        public IntermediateCollection​(com.yahoo.config.application.api.DeployLogger logger,
                                      com.yahoo.config.model.api.ModelContext.Properties properties)
    • Method Detail

      • 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.