Class QueryProfileXMLReader
- java.lang.Object
-
- com.yahoo.search.query.profile.config.QueryProfileXMLReader
-
public class QueryProfileXMLReader extends Object
Importer of query profiles and types from XML files- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description QueryProfileXMLReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Element>
createQueryProfiles(List<com.yahoo.io.reader.NamedReader> queryProfileReaders, QueryProfileRegistry registry)
List<Element>
createQueryProfileTypes(List<com.yahoo.io.reader.NamedReader> queryProfileTypeReaders, QueryProfileTypeRegistry registry)
void
fillQueryProfiles(List<Element> queryProfileElements, QueryProfileRegistry registry)
void
fillQueryProfileTypes(List<Element> queryProfileTypeElements, QueryProfileTypeRegistry registry)
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)QueryProfileRegistry
read(List<com.yahoo.io.reader.NamedReader> queryProfileTypeReaders, List<com.yahoo.io.reader.NamedReader> queryProfileReaders)
Read the XML file readers into a registry.
-
-
-
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.
-
createQueryProfileTypes
public List<Element> createQueryProfileTypes(List<com.yahoo.io.reader.NamedReader> queryProfileTypeReaders, QueryProfileTypeRegistry registry)
-
createQueryProfiles
public List<Element> createQueryProfiles(List<com.yahoo.io.reader.NamedReader> queryProfileReaders, QueryProfileRegistry registry)
-
fillQueryProfileTypes
public void fillQueryProfileTypes(List<Element> queryProfileTypeElements, QueryProfileTypeRegistry registry)
-
fillQueryProfiles
public void fillQueryProfiles(List<Element> queryProfileElements, QueryProfileRegistry registry)
-
-