Uses of Class
com.yahoo.search.query.profile.QueryProfileRegistry
Package
Description
Query Profiles provide nested sets of named (and optionally typed) key-values which can be referenced in a Query
to proviode initial values of Query properties.
Query profile types defines the set of fields a query profile may, can or must have.
-
Uses of QueryProfileRegistry in com.yahoo.search.query.profile
Modifier and TypeFieldDescriptionfinal QueryProfileRegistry
QueryProfile.owner
The query profile registry owning this, or null if none (which will only happen in tests)Modifier and TypeMethodDescriptionprotected Object
OverridableQueryProfile.checkAndConvertAssignment
(String localName, Object inputValue, QueryProfileRegistry registry) protected Object
QueryProfile.checkAndConvertAssignment
(String localName, Object value, QueryProfileRegistry registry) Converts to the type of the receiving field, if possible and necessary.static CompiledQueryProfileRegistry
QueryProfileCompiler.compile
(QueryProfileRegistry input) protected void
QueryProfile.set
(com.yahoo.processing.request.CompoundName name, Object value, DimensionBinding binding, QueryProfileRegistry registry) Override this to intercept all writes to this profile (or any nested profiles)final void
QueryProfile.set
(com.yahoo.processing.request.CompoundName name, Object value, Map<String, String> context, QueryProfileRegistry registry) Sets a value in this or any nested profile.final void
QueryProfile.set
(String name, Object value, DimensionValues dimensionValues, QueryProfileRegistry registry) Sets a value in this or any nested profile.final void
QueryProfile.set
(String name, Object value, QueryProfileRegistry registry) Sets a value in this or any nested profile using null as contextfinal void
QueryProfile.set
(String name, Object value, String[] dimensionValues, QueryProfileRegistry registry) final void
QueryProfile.set
(String name, Object value, Map<String, String> context, QueryProfileRegistry registry) protected QueryProfile
QueryProfile.setLocalNode
(String localName, Object value, QueryProfileType parentType, DimensionBinding dimensionBinding, QueryProfileRegistry registry) Sets the value of a node in this profile - the local name given must not be nested (contain dots)ModifierConstructorDescriptionprotected
Creates an unbacked overridable query profileprotected
OverridableQueryProfile
(String sourceName, QueryProfileRegistry owner) QueryProfile
(com.yahoo.component.ComponentId id, String sourceName, QueryProfileRegistry owner) -
Uses of QueryProfileRegistry in com.yahoo.search.query.profile.config
Modifier and TypeMethodDescriptionstatic QueryProfileRegistry
QueryProfileConfigurer.createFromConfig
(QueryProfilesConfig config) static QueryProfileRegistry
QueryProfileConfigurer.createFromConfigId
(String configId) Reads all query profile xml files in a given directory, and all type xml files from the immediate subdirectory "types/" (if any)QueryProfileXMLReader.read
(List<com.yahoo.io.reader.NamedReader> queryProfileTypeReaders, List<com.yahoo.io.reader.NamedReader> queryProfileReaders) Read the XML file readers into a registry.Modifier and TypeMethodDescriptionQueryProfileXMLReader.createQueryProfiles
(List<com.yahoo.io.reader.NamedReader> queryProfileReaders, QueryProfileRegistry registry) void
QueryProfileXMLReader.fillQueryProfiles
(List<Element> queryProfileElements, QueryProfileRegistry registry) -
Uses of QueryProfileRegistry in com.yahoo.search.query.profile.types
Modifier and TypeMethodDescriptionabstract Object
FieldType.convertFrom
(Object o, QueryProfileRegistry registry) Converts the given type to an instance of this type, if possible.PrimitiveFieldType.convertFrom
(Object object, QueryProfileRegistry registry) QueryFieldType.convertFrom
(Object o, QueryProfileRegistry registry) QueryProfileFieldType.convertFrom
(Object object, QueryProfileRegistry registry) TensorFieldType.convertFrom
(Object o, QueryProfileRegistry registry)