Package | Description |
---|---|
com.yahoo.search.query.profile |
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.
|
com.yahoo.search.query.profile.config | |
com.yahoo.search.query.profile.types |
Query profile types defines the set of fields a query profile may, can or must have.
|
Modifier and Type | Field and Description |
---|---|
private static QueryProfileRegistry |
QueryProfileRegistry.instance
The current default instance of this registry
|
Modifier and Type | Method and Description |
---|---|
protected Object |
QueryProfile.checkAndConvertAssignment(String localName,
Object value,
QueryProfileRegistry registry)
Converts to the type of the receiving field, if possible and necessary.
|
protected Object |
OverridableQueryProfile.checkAndConvertAssignment(String localName,
Object inputValue,
QueryProfileRegistry registry) |
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)
|
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.
|
void |
QueryProfile.set(String name,
Object value,
DimensionValues dimensionValues,
QueryProfileRegistry registry)
Sets a value in this or any nested profile.
|
void |
QueryProfile.set(String name,
Object value,
Map<String,String> context,
QueryProfileRegistry registry) |
void |
QueryProfile.set(String name,
Object value,
QueryProfileRegistry registry)
Sets a value in this or any nested profile using null as context
|
void |
QueryProfile.set(String name,
Object value,
String[] dimensionValues,
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)
|
private void |
QueryProfile.setNode(com.yahoo.processing.request.CompoundName name,
Object value,
QueryProfileType parentType,
DimensionBinding dimensionBinding,
QueryProfileRegistry registry)
Sets a value to a (possibly non-local) node.
|
Modifier and Type | Field and Description |
---|---|
private QueryProfileRegistry |
QueryProfileConfigurer.currentRegistry |
Modifier and Type | Method and Description |
---|---|
static QueryProfileRegistry |
QueryProfileConfigurer.createFromConfig(QueryProfilesConfig config) |
QueryProfileRegistry |
QueryProfileConfigurer.getCurrentRegistry()
Returns the registry created by the last occurring call to configure
|
QueryProfileRegistry |
QueryProfileXMLReader.read(List<com.yahoo.io.reader.NamedReader> queryProfileTypeReaders,
List<com.yahoo.io.reader.NamedReader> queryProfileReaders)
Read the XML file readers into a registry.
|
QueryProfileRegistry |
QueryProfileXMLReader.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)
|
Modifier and Type | Method and Description |
---|---|
private static void |
QueryProfileConfigurer.createProfile(QueryProfilesConfig.Queryprofile config,
QueryProfileRegistry registry) |
List<Element> |
QueryProfileXMLReader.createQueryProfiles(List<com.yahoo.io.reader.NamedReader> queryProfileReaders,
QueryProfileRegistry registry) |
private static void |
QueryProfileConfigurer.fillProfile(QueryProfile inherited,
QueryProfilesConfig queryProfilesConfig,
QueryProfileRegistry registry,
Set<com.yahoo.component.ComponentId> visited)
Fill a given profile by locating its config
|
private static void |
QueryProfileConfigurer.fillProfile(QueryProfilesConfig.Queryprofile config,
QueryProfilesConfig queryProfilesConfig,
QueryProfileRegistry registry,
Set<com.yahoo.component.ComponentId> filled) |
void |
QueryProfileXMLReader.fillQueryProfiles(List<Element> queryProfileElements,
QueryProfileRegistry registry) |
private void |
QueryProfileXMLReader.readFields(Element element,
QueryProfile profile,
QueryProfileRegistry registry,
DimensionValues dimensionValues,
String sourceDescription) |
private Object |
QueryProfileXMLReader.readFieldValue(Element field,
String name,
String targetDescription,
QueryProfileRegistry registry) |
private void |
QueryProfileXMLReader.readInherited(Element element,
QueryProfile profile,
QueryProfileRegistry registry,
DimensionValues dimensionValues,
String sourceDescription) |
private void |
QueryProfileXMLReader.readVariants(Element element,
QueryProfile profile,
QueryProfileRegistry registry) |
private void |
QueryProfileConfigurer.setCurrentRegistry(QueryProfileRegistry registry) |
Modifier and Type | Method and Description |
---|---|
Object |
PrimitiveFieldType.convertFrom(Object object,
QueryProfileRegistry registry) |
Object |
QueryFieldType.convertFrom(Object o,
QueryProfileRegistry registry) |
Object |
TensorFieldType.convertFrom(Object o,
QueryProfileRegistry registry) |
QueryProfile |
QueryProfileFieldType.convertFrom(Object object,
QueryProfileRegistry registry) |
abstract Object |
FieldType.convertFrom(Object o,
QueryProfileRegistry registry)
Converts the given type to an instance of this type, if possible.
|
Copyright © 2018. All rights reserved.