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
ownerFields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates an unbacked overridable query profileprotectedOverridableQueryProfile(String sourceName, QueryProfileRegistry owner) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectcheckAndConvertAssignment(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 QueryProfilecreateSubProfile(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, visitVariantsMethods inherited from class com.yahoo.component.provider.FreezableSimpleComponent
ensureNotFrozen, isFrozenMethods 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:QueryProfileConverts to the type of the receiving field, if possible and necessary.- Overrides:
checkAndConvertAssignmentin classQueryProfile- Returns:
- the value to be assigned: the original or a converted value
-
createSubProfile
Description copied from class:QueryProfileLooks up all inherited profiles and adds any that matches this name. This default implementation returns an empty profile.- Overrides:
createSubProfilein classQueryProfile
-
clone
Returns a clone of this which can be independently overridden- Overrides:
clonein classQueryProfile
-
toString
- Overrides:
toStringin classQueryProfile
-