Class ValueWithSource
java.lang.Object
com.yahoo.search.query.profile.compiled.ValueWithSource
A value in a query profile with information about its source.
- Author:
- bratseth
-
Constructor Summary
ConstructorDescriptionValueWithSource
(Object value, String source, boolean isUnoverridable, boolean isQueryProfile, QueryProfileType type, DimensionValues variant) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
Returns true if this key references a query profile (i.e a non-leaf).boolean
Returns true if this value cannot be overridden in queriesReturns tye type of this if it refers to a query profile (not a leaf value), and it has a typesource()
Returns the source of the query profile having a valuetoString()
value()
Returns the value at this key, or null if none (in which case this is references a query profile which has no value set).variant()
Returns the variant having this value, or empty if it's not in a variantwithSource
(String source) withVariant
(Optional<DimensionValues> variant)
-
Constructor Details
-
ValueWithSource
public ValueWithSource(Object value, String source, boolean isUnoverridable, boolean isQueryProfile, QueryProfileType type, DimensionValues variant)
-
-
Method Details
-
value
Returns the value at this key, or null if none (in which case this is references a query profile which has no value set). -
source
Returns the source of the query profile having a value -
isUnoverridable
public boolean isUnoverridable()Returns true if this value cannot be overridden in queries -
isQueryProfile
public boolean isQueryProfile()Returns true if this key references a query profile (i.e a non-leaf). In this case the value may or may not be null, as non-leafs may have values. -
queryProfileType
Returns tye type of this if it refers to a query profile (not a leaf value), and it has a type -
withValue
-
withSource
-
withVariant
-
variant
Returns the variant having this value, or empty if it's not in a variant -
hashCode
public int hashCode() -
equals
-
toString
-