Uses of Class
com.yahoo.search.query.profile.DimensionValues
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 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.
-
Uses of DimensionValues in com.yahoo.search.query.profile
Modifier and TypeMethodDescriptionstatic DimensionValues
DimensionValues.createFrom
(String[] values) QueryProfileVariant.getDimensionValues()
QueryProfileVariants.FieldValue.getDimensionValues()
Returns the dimension values for which this value should be used.DimensionBinding.getValues()
Returns the values for the dimensions of this.Modifier and TypeMethodDescriptionvoid
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.final Object
QueryProfile.get
(String name, DimensionValues dimensionValues, com.yahoo.processing.request.Properties substitution) Returns a value from this using the given dimensions for resolutionQueryProfileVariants.FieldValues.getExact
(DimensionValues dimensionValues) Returns the value having exactly the given dimensions, or null if noneQueryProfileVariants.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 missingvoid
QueryProfileVariants.inherit
(QueryProfile profile, DimensionValues dimensionValues) Inherits a particular profile in a variant of thisboolean
DimensionValues.isMoreSpecificThan
(DimensionValues other) Helper method which uses compareTo to return whether this is most specificQueryProfileVariants.isOverridable
(String fieldName, DimensionValues dimensionValues) boolean
DimensionValues.matches
(DimensionValues givenValues) Returns true if this is has the same value every place it has a value as the given values.boolean
QueryProfileVariant.matches
(DimensionValues givenDimensionValues) boolean
QueryProfileVariants.FieldValue.matches
(DimensionValues givenDimensionValues) void
QueryProfileVariants.FieldValues.put
(DimensionValues dimensionValues, Object value) final void
QueryProfile.set
(String name, Object value, DimensionValues dimensionValues, QueryProfileRegistry registry) Sets a value in this or any nested profile.void
QueryProfileVariants.set
(String fieldName, DimensionValues dimensionValues, Object value) Sets a value to thisfinal void
QueryProfile.setOverridable
(String fieldName, boolean overridable, DimensionValues dimensionValues) Sets the overridability of a field in this profile, this overrides the corresponding setting in the type (if any)void
QueryProfileVariants.setOverridable
(String fieldName, boolean overridable, DimensionValues dimensionValues) Makes a value unoverridable in a given context.ModifierConstructorDescriptionFieldValue
(DimensionValues dimensionValues, Object value) QueryProfileVariant
(DimensionValues dimensionValues, QueryProfile owner) -
Uses of DimensionValues in com.yahoo.search.query.profile.compiled
Modifier and TypeMethodDescriptionValueWithSource.variant()
Returns the variant having this value, or empty if it's not in a variantModifierConstructorDescriptionValueWithSource
(Object value, String source, boolean isUnoverridable, boolean isQueryProfile, QueryProfileType type, DimensionValues variant)