Package com.yahoo.search.query.profile
Class OverridableQueryProfile
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.component.provider.FreezableSimpleComponent
com.yahoo.search.query.profile.QueryProfile
com.yahoo.search.query.profile.OverridableQueryProfile
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,com.yahoo.component.provider.Freezable
,Cloneable
,Comparable<com.yahoo.component.Component>
- Direct Known Subclasses:
BackedOverridableQueryProfile
A regular query profile which knows it is storing overrides (not configured profiles)
and that implements override legality checking.
- Author:
- bratseth
-
Field Summary
Fields inherited from class com.yahoo.search.query.profile.QueryProfile
owner
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates an unbacked overridable query profileprotected
OverridableQueryProfile
(String sourceName, QueryProfileRegistry owner) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
checkAndConvertAssignment
(String localName, Object inputValue, QueryProfileRegistry registry) Converts to the type of the receiving field, if possible and necessary.clone()
Returns a clone of this which can be independently overriddenprotected QueryProfile
createSubProfile
(String name, DimensionBinding binding) Looks up all inherited profiles and adds any that matches this name.toString()
Methods inherited from class com.yahoo.search.query.profile.QueryProfile
accept, addInherited, addInherited, addInherited, compile, declaredContent, freeze, get, get, get, get, get, get, get, getContent, getContent, getDimensions, getOwner, getSource, getType, getValue, getVariants, inherited, isDeclaredOverridable, isExplicit, isLocalInstanceOverridable, listValues, listValues, listValues, listValues, listValues, localLookup, lookup, lookup, set, set, set, set, set, set, setDimensions, setLocalNode, setOverridable, setOverridable, setType, setValue, validateName, visitInherited, visitVariants
Methods inherited from class com.yahoo.component.provider.FreezableSimpleComponent
ensureNotFrozen, isFrozen
Methods inherited from class com.yahoo.component.AbstractComponent
compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable
-
Constructor Details
-
OverridableQueryProfile
Creates an unbacked overridable query profile -
OverridableQueryProfile
-
-
Method Details
-
checkAndConvertAssignment
protected Object checkAndConvertAssignment(String localName, Object inputValue, QueryProfileRegistry registry) Description copied from class:QueryProfile
Converts to the type of the receiving field, if possible and necessary.- Overrides:
checkAndConvertAssignment
in classQueryProfile
- Returns:
- the value to be assigned: the original or a converted value
-
createSubProfile
Description copied from class:QueryProfile
Looks up all inherited profiles and adds any that matches this name. This default implementation returns an empty profile.- Overrides:
createSubProfile
in classQueryProfile
-
clone
Returns a clone of this which can be independently overridden- Overrides:
clone
in classQueryProfile
-
toString
- Overrides:
toString
in classQueryProfile
-