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 |
Modifier and Type | Field and Description |
---|---|
private DimensionValues |
QueryProfileVariants.FieldValue.dimensionValues |
private DimensionValues |
QueryProfileVariant.dimensionValues |
static DimensionValues |
DimensionValues.empty |
private DimensionValues |
DimensionBinding.values
The values matching those dimensions
|
Modifier and Type | Method and Description |
---|---|
static DimensionValues |
DimensionValues.createFrom(String[] values) |
private static DimensionValues |
DimensionBinding.extractDimensionValues(List<String> dimensions,
Map<String,String> context)
Returns an array of the dimension values corresponding to the dimensions of this from the given context,
in the corresponding order.
|
DimensionValues |
QueryProfileVariants.FieldValue.getDimensionValues()
Returns the dimension values for which this value should be used.
|
DimensionValues |
QueryProfileVariant.getDimensionValues() |
DimensionValues |
DimensionBinding.getValues()
Returns the values for the dimensions of this.
|
Modifier and Type | Method and Description |
---|---|
void |
QueryProfile.addInherited(QueryProfile profile,
DimensionValues dimensionValues)
Adds a profile to the end of the inherited list of this for the given variant.
|
int |
DimensionValues.compareTo(DimensionValues other)
Implements the sort order of this which is based on specificity
where dimensions to the left are more significant:
-1 is returned if this is more specific than other,
1 is returned if other is more specific than this,
0 is returned if none is more specific than the other.
|
static DimensionBinding |
DimensionBinding.createFrom(List<String> dimensions,
DimensionValues dimensionValues)
Creates a binding from a variant and a context.
|
Object |
QueryProfile.get(String name,
DimensionValues dimensionValues,
com.yahoo.processing.request.Properties substitution)
Returns a value from this using the given dimensions for resolution
|
Object |
QueryProfileVariants.FieldValues.getExact(DimensionValues dimensionValues)
Returns the value having exactly the given dimensions, or null if none
|
private QueryProfileVariants.FieldValue |
QueryProfileVariants.FieldValues.getExactFieldValue(DimensionValues dimensionValues)
Returns the field value having exactly the given dimensions, or null if none
|
QueryProfileVariant |
QueryProfileVariants.getVariant(DimensionValues dimensionValues,
boolean create)
Returns the query profile variant having exactly the given dimensions, and creates it if create is set and
it is missing
|
void |
QueryProfileVariants.inherit(QueryProfile profile,
DimensionValues dimensionValues)
Inherits a particular profile in a variant of this
|
boolean |
DimensionValues.isMoreSpecificThan(DimensionValues other)
Helper method which uses compareTo to return whether this is most specific
|
private Object |
QueryProfileVariants.FieldValue.lookupInVariants(String fieldName,
DimensionValues dimensionValues,
List<QueryProfileVariant> variants) |
boolean |
QueryProfileVariants.FieldValue.matches(DimensionValues givenDimensionValues) |
boolean |
DimensionValues.matches(DimensionValues givenValues)
Returns true if this is has the same value every place it has a value as the givenValues.
|
boolean |
QueryProfileVariant.matches(DimensionValues givenDimensionValues) |
void |
QueryProfileVariants.FieldValues.put(DimensionValues dimensionValues,
Object value) |
void |
QueryProfileVariants.set(String fieldName,
DimensionValues dimensionValues,
Object value)
Sets a value to this
|
void |
QueryProfile.set(String name,
Object value,
DimensionValues dimensionValues,
QueryProfileRegistry registry)
Sets a value in this or any nested profile.
|
Constructor and Description |
---|
DimensionBinding(List<String> dimensions,
DimensionValues values,
Map<String,String> context)
Creates a dimension binding.
|
FieldValue(DimensionValues dimensionValues,
Object value) |
QueryProfileVariant(DimensionValues dimensionValues,
QueryProfile owner) |
Modifier and Type | Method and Description |
---|---|
private void |
QueryProfileXMLReader.readFields(Element element,
QueryProfile profile,
QueryProfileRegistry registry,
DimensionValues dimensionValues,
String sourceDescription) |
private void |
QueryProfileXMLReader.readInherited(Element element,
QueryProfile profile,
QueryProfileRegistry registry,
DimensionValues dimensionValues,
String sourceDescription) |
Copyright © 2017. All rights reserved.