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.
|
Modifier and Type | Field and Description |
---|---|
static DimensionValues |
DimensionValues.empty |
Modifier and Type | Method and Description |
---|---|
static DimensionValues |
DimensionValues.createFrom(String[] values) |
DimensionValues |
QueryProfileVariant.getDimensionValues() |
DimensionValues |
QueryProfileVariants.FieldValue.getDimensionValues()
Returns the dimension values for which this value should be used.
|
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
|
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
|
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) |
boolean |
QueryProfileVariants.FieldValue.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 |
---|
FieldValue(DimensionValues dimensionValues,
Object value) |
QueryProfileVariant(DimensionValues dimensionValues,
QueryProfile owner) |
Copyright © 2018. All rights reserved.