Class QueryProfileXMLReader


  • public class QueryProfileXMLReader
    extends Object
    Importer of query profiles and types from XML files
    Author:
    bratseth
    • Constructor Detail

      • QueryProfileXMLReader

        public QueryProfileXMLReader()
    • Method Detail

      • read

        public QueryProfileRegistry read​(String directory)
        Reads all query profile xml files in a given directory, and all type xml files from the immediate subdirectory "types/" (if any)
        Throws:
        IllegalArgumentException - if the directory is not readable, or if there is some error in the XML
      • read

        public QueryProfileRegistry read​(List<com.yahoo.io.reader.NamedReader> queryProfileTypeReaders,
                                         List<com.yahoo.io.reader.NamedReader> queryProfileReaders)
        Read the XML file readers into a registry. This does not close the readers. This method is used directly from the admin system.