Class IntermediateCollection

java.lang.Object
com.yahoo.schema.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 Details

    • IntermediateCollection

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

    • getParsedSchemas

      public Map<String,ParsedSchema> getParsedSchemas()
    • getParsedSchema

      public ParsedSchema getParsedSchema(String name)
    • addSchemaFromString

      public ParsedSchema addSchemaFromString(String input) throws ParseException
      Throws:
      ParseException
    • addSchemaFromReader

      public String addSchemaFromReader(com.yahoo.io.reader.NamedReader reader)
      Parses a schema from the given reader and add result to collection.
    • addSchemaFromFile

      public String addSchemaFromFile(String fileName)
      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